- This topic has 4 replies, 3 voices, and was last updated 7 years, 10 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Hope someone can help here.
I'm trying to change the default header font from Alice to Droid Serif via Google Fonts on a new site I'm working on http://bit.ly/1RLkgAG I'd like to swap out all instances of Alice and replace with Droid Serif.
I've tried loads of variations using a few different articles online. They seem to be consistent..however..I seem to be consistently getting it wrong. Replacing 'Alice' with 'Droid-Serif' in Functions and Stylesheet left me with Lato (the main font used on the theme). Using 'Droid' doesn't do the trick either.
Looks to me that I've currently got a serif font but it's not the right one.
Any help would be greatly appreciated.
Just to confirm the steps you've taken so far --
1) Enqueued the font properly, changing the required line in the functions file. In Daily Dish Pro, you'd be changing line 23 to this:
wp_enqueue_style( 'daily-dish-google-fonts', '//fonts.googleapis.com/css?family=Droid+Serif:700|Lato:400,400italic,700', array(), CHILD_THEME_VERSION );
This enqueues only the bold (700) font-weight for Droid Serif and normal (400), normal italic, and bold (700) for Lato.
2) Declared the font correctly in your style sheet. In Daily Dish Pro, you'd be changing line 241 to this:
font-family: 'Droid Serif', serif;
Can you try that to be sure you didn't forget a plus sign or apostrophe anywhere? These things are super sensitive at times! 🙂
Here's a step by step guide for beginners ( with pictures ) http://wpsites.net/wordpress-tips/free-google-web-fonts-for-wordpress/
Thanks for your detailed response much appreciated.
Hmmm. So think I may have missed off a : in the Functions file or more likely I was inputting Droid+Serif in the stylesheet (carrying over the + which is used in Functions).
Thank you very much for helping me with this query and tripling my knowledge of css 🙂
Happy New Year!
Thanks for your response. Your article was much clearer and looks like you have a very useful website.
Appreciate your help..thanks very much.
Happy New Year!
© 2023 WPEngine, Inc.