Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #597822

    Hi,

    I am trying to change the navigation font to the google font ‘Poiret One’

    I installed the plugin WP Google Fonts and this seems to allow me to change the body and heading fonts but does not allow me to change the navigation fonts.

    What is the best course of action?

    #597827

    Hey markpevans!

    Please refer to this post – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/ and then go to Enfold theme options > Advanced Styling and edit “Main menu links”

    Regards,
    Yigit

    #597841

    Hi Yigit,

    Thank you for the super fast reply. So to clarify I should change the php code by replacing ‘PT Sans Narrow’ with ‘Poiret One’ as per the following:

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Poiret One’] = ‘Poiret One:400,700’;
    $fonts[‘Poiret One’] = ‘Poiret One:400,700,400italic,700italic’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {

    $fonts[‘Poiret One’] = ‘Poiret One:400,700,400italic,700italic’;
    $fonts[‘Poiret One’] = ‘Poiret One Narrow:400,700’;
    return $fonts;
    }

    Is this correct?

    #597843

    Hey!

    Yes and adjust 400,700 etc. to match font weight you would like to add

    Best regards,
    Yigit

    #597854

    Awesome! It WORKED!

    #597875

    Hey!

    Great!
    Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

    #597953

    Hi Ygit,

    Sorry to be a pain.

    The body content font has also changed to the Poiret One font which I didn’t want.

    How can I change the body font to Helvetica?

    #597968

    Hey Mark!

    To change the font for the body text, please try adding the following code to the Quick CSS field under the General styling tab in the theme options:

    body p {
        font-family: 'Helvetica', sans-serif;
    }

    Let me know how it goes!

    Regards,
    Jordan

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.