-
AuthorPosts
-
March 14, 2016 at 4:22 pm #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?
March 14, 2016 at 4:25 pm #597827Hey 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,
YigitMarch 14, 2016 at 4:43 pm #597841Hi 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?
March 14, 2016 at 4:47 pm #597843Hey!
Yes and adjust 400,700 etc. to match font weight you would like to add
Best regards,
YigitMarch 14, 2016 at 5:05 pm #597854Awesome! It WORKED!
March 14, 2016 at 5:25 pm #597875Hey!
Great!
Let us know if you have any other questions or issues :)Best regards,
YigitMarch 14, 2016 at 8:06 pm #597953Hi 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?
March 14, 2016 at 8:49 pm #597968Hey 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 -
AuthorPosts
- You must be logged in to reply to this topic.
