-
AuthorPosts
-
September 18, 2014 at 7:25 pm #321422
hi. I would like to have my menu font be Sue Ellen Francisco (google font). I tried using Add Google Fonts and Use Any Font, but I can’t seem to figure out how to change change certain aspects. Google Fonts doesn’t even appear to have the ability to change a tags. In Use Any Font, I can change the a tags to Sue Ellen, but then it changes every link and the font is hard to read unless it is larger and all caps. Can you please give me step by step instructions on how to change all the levels of my menu to this font? I believe I am going to have to add the font via php or something so I can call it using css? But I am a little lost.
Thanks!!!!
September 18, 2014 at 11:41 pm #321574Hey!
Try adding this at the very end of your theme functions.php file:
add_filter( 'avf_google_heading_font', 'avia_add_content_font'); add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Sue Ellen Francisco'] = 'Sue+Ellen+Francisco'; return $fonts; }
Once you done that you can set that font to the menu items via Advanced Style Editor:
Cheers!
JosueSeptember 19, 2014 at 3:23 pm #321910Ok, so that doesn’t work:(
I tried adding it to functions.php, then I created a child theme and added it there. Both times I got an error message that looked like this:
Parse error: syntax error, unexpected T_FUNCTION, expecting T_STRING or T_VARIABLE or ‘$’ in /home3/lizy/public_html/fitrats.com/wp-content/themes/enfold/functions-enfold.php on line 1080
I tried googling how to add a google font to functions.php but the code looked so different then what you provided I decided just to ask again.
Thanks!
September 19, 2014 at 6:53 pm #322065Hey!
You need to put the code in /themes/enfold/functions.php at the very end. I can do it for you if you want but i’d need an admin account (WordPress).
Cheers!
Josue -
AuthorPosts
- You must be logged in to reply to this topic.