-
AuthorPosts
-
June 17, 2015 at 9:35 am #460600
Hi,
I tried to follow the instructions here: http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/ but I probably edited wrong with the following code to fit my font:
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Titillium Web'] = 'Titillium Web:300,300italic,400,400italic,700,700italic:latin'; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Titillium Web'] = 'Titillium Web:300,300italic,400,400italic,700,700italic:latin'; }
Basically, I would like this font “Titillium Web:300,300italic,400,400italic,700,700italic:latin” to be included in all parts of Enfold.
How to achieve this?
June 17, 2015 at 9:42 am #460605you erased the return $fonts; instruction twice !
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Titillium Web'] = 'Titillium Web:300,300italic,400,400italic,700,700italic:latin'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Titillium Web'] = 'Titillium Web:300,300italic,400,400italic,700,700italic:latin'; return $fonts; }
June 17, 2015 at 5:00 pm #460875June 17, 2015 at 7:24 pm #460931Spot on, totally missed that…
Thank you @guenni007 and @Yigit.Now, can you please confirm how do I assign this specific font to basically ALL sections of the website? Body, headers, etc? Is there a fast / easy way to make this font the default one?
June 17, 2015 at 7:31 pm #460933Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
body * { font-family: 'Titillium Web', sans-serif !important; }
Best regards,
YigitJune 17, 2015 at 7:36 pm #460939Thank you @Yigit – that worked but some sections look terrible with this font in place (menus for example). I tried to override the menu font change but I believe that the code you sent me overrides any other changes made?
What is the solution to change the font to the body and some other sections as per my choice?
June 17, 2015 at 7:50 pm #460946Well you can set the fonts too on Enfold Options Dialogs.
On “General Styling” there are Fonts on the last Tab.
And if you want you can set on “advanced Styling” too font-family and in one setup the text-transform, text-color etc.edit: :lol “changed” :)
- This reply was modified 9 years, 5 months ago by Guenni007.
June 18, 2015 at 7:13 pm #461528Hey!
Please remove the code i posted here – https://kriesi.at/support/topic/add-google-font-to-all-parts-of-enfold/#post-460933 and refer to @guenni007’s post above. If there are additional section that you would like to have that font family, please point them out.
@guenni007 Thanks :)Regards,
YigitJune 19, 2015 at 5:44 pm #462076Noted.
Thank you both for the updates, I will confirm all font areas as we go.
-
AuthorPosts
- The topic ‘Add Google Font to all parts of Enfold’ is closed to new replies.