Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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?

    #460605

    you 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;
    }
    #460875

    Hi!

    Please refer to @guenni007’s post above

    @guenni007
    thanks :)

    Regards,
    Yigit

    #460931

    Spot 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?

    #460933

    Hey!

    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,
    Yigit

    #460939

    Thank 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?

    #460946

    Well 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, 6 months ago by Guenni007.
    #461528

    Hey!

    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,
    Yigit

    #462076

    Noted.

    Thank you both for the updates, I will confirm all font areas as we go.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Add Google Font to all parts of Enfold’ is closed to new replies.