Tagged: google fonts, header, italic, main menu, yigit
-
AuthorPosts
-
April 11, 2016 at 12:22 am #610878
Hello!
I would like a way to change the header menu links to italic and I need help with it.Would I need to add custom CSS code?
If yes, I would like to ask you if you could please give me that code.I would also need help with how to add more google fonts to Enfold. (If someone already asked this if you could please send me a link to that answer I would highly appreciate it.)
Thank you.
Lexie.
April 11, 2016 at 3:39 am #610902Hi LexieIsabelle!
Please see – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/
then add following code to Quick CSS in Enfold theme options under General Styling tab#top #header .av-main-nav > li > a { font-style: italic; }
Please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png in Quick CSS field.
If you need help applying the changes, please create a temporary admin login and post it here privately so we can apply them for you
Regards,
YigitApril 13, 2016 at 1:41 am #612275Hi Yigit, thank you for your help. Needed to correct the sign and now it works. :)
April 13, 2016 at 2:00 am #612287I run into a problem. I’m trying to follow the instructions about adding extra google fonts (you sent me a link to that).
I copy pasted the code provided and changed the name of the font to the one I want.
But every time I paste the code to functions.php my site breaks down.This is the code. I’m probably doing something wrong.
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Playfair Display’] = ‘Playfair Display:400,700,900’;
$fonts[‘PT Sans’] = ‘Playfair Display:400,700,900,400italic,700italic,900italic’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Playfair Display’] = ‘Playfair Display:400,700,900,400italic,700italic,900italic’;
$fonts[‘Playfair Display’] = ‘Playfair Display:400,700,900’;
return $fonts;
}I would appreciate your help. Thank you.
April 13, 2016 at 4:16 pm #612882Hey Lexie!
Please create a temporary admin login and post it here privately so we can insert the code for you :)
Best regards,
YigitApril 22, 2016 at 12:51 pm #619875Ok, I will do that I just need to collect all the fonts I want. Because I want a few.
Thank you.
April 22, 2016 at 1:11 pm #619881June 26, 2016 at 10:41 am #653519Hello!
You said you can help me install google fonts if I send you the password to my WordPress.I would like to have these fonts installed:
https://www.google.com/fonts/specimen/Playfair+Display
oogle.com/fonts/specimen/Source+Sans+Pro
https://www.google.com/fonts/specimen/Karla
https://www.google.com/fonts/specimen/Neuton
https://www.google.com/fonts/specimen/Merriweather
https://www.google.com/fonts/specimen/Libre+Baskerville
https://www.google.com/fonts/specimen/Crimson+Text
https://www.google.com/fonts/specimen/Old+Standard+TT
https://www.google.com/fonts/specimen/Cardo
https://www.google.com/fonts/specimen/PT+SerifI appreciate your help.
Thank you.- This reply was modified 8 years, 4 months ago by LexieIsabelle.
June 26, 2016 at 10:42 am #653520June 29, 2016 at 12:41 pm #654784Hi,
I added the fonts. I noticed you are not using a child theme, so changes will be overwritten when you update the theme. In case you need to add the codes again, please see below
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Playfair Display'] = 'Playfair Display:400,700'; $fonts['Source Sans Pro'] = 'Source Sans Pro:400,700'; $fonts['Karla'] = 'Karla:400,700'; $fonts['Neuton'] = 'Neuton:400,700'; $fonts['Merriweather'] = 'Merriweather:400,700'; $fonts['Libre Baskerville'] = 'Libre Baskerville:400,700'; $fonts['Crimson Text'] = 'Crimson Text:400,700'; $fonts['Old Standard TT'] = 'Old Standard TT:400,700'; $fonts['Cardo'] = 'Cardo:400,700'; $fonts['PT Serif'] = 'PT Serif:400,700'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Playfair Display'] = 'Playfair Display:400,700'; $fonts['Source Sans Pro'] = 'Source Sans Pro:400,700'; $fonts['Karla'] = 'Karla:400,700'; $fonts['Neuton'] = 'Neuton:400,700'; $fonts['Merriweather'] = 'Merriweather:400,700'; $fonts['Libre Baskerville'] = 'Libre Baskerville:400,700'; $fonts['Crimson Text'] = 'Crimson Text:400,700'; $fonts['Old Standard TT'] = 'Old Standard TT:400,700'; $fonts['Cardo'] = 'Cardo:400,700'; $fonts['PT Serif'] = 'PT Serif:400,700'; return $fonts; }
Best regards,
YigitJuly 8, 2016 at 7:35 pm #658572Hi Thanks!
So when I create a child theme I’ll have to do it again?
Please let me know where to paste these codes exactly.
Thank you!July 8, 2016 at 7:56 pm #658578Hi!
When you update the theme, they will be overwritten. If you create a child theme, please remove this code from functions.php file of parent theme before adding it to functions.php file of your child theme. This is important or you will blow up your site. If you need our help, please let us know after creating a child theme.
Cheers!
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.