简体   繁体   中英

Where to find file in wordpress .php in which i can link google font to my website?

where can i find .php file in wordpress format, which can import google font which i could use in my theme? If there's way how can i import that font?

In example simple HTML has it in

You'll want to get the embed code from Google Fonts for the font you're using. Add that right after the <head> section of header.php. You can then use the font using stylesheet, like this:

.h1 page-title { font-family: 'Roboto Condensed', sans-serif; }

Obviously, replacing 'Roboto Condensed' with whichever font you're using. It will specify in Google Fonts the exact name to use, and even give you the line to paste into stye.css. I'd recommend making those changes to header.php and style.css using a child theme so that your changes don't get overwritten when you update your theme.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM