-
AuthorPosts
-
October 9, 2016 at 9:44 pm #697108
Hi,
After updating to the latest enfold and wordpress versions, i can no longer add additional google fonts via functions.php.
Here is the code i had:
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; }
October 10, 2016 at 12:16 am #697134Hey Transformers Universe,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
VinayMarch 8, 2018 at 4:38 pm #923939Hi, Sorry to hijack this thread, but i am having the same problem. I’m seeing the same snippet of code in this forum for adding extra google fonts, but the code is not working for me.
I’m not using a child theme, just using the Enfold theme out the box.
//Google Fonts
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Source Sans Pro’] = ‘Source Sans Pro:300,300i,400,400i,600,600i,700,900’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Source Sans Pro’] = ‘Source Sans Pro:300,300i,400,400i,600,600i,700,900’;
return $fonts;
}Above not working. Any reason why you would not just add all google fonts to begin with?
**EDIT** I see the font now in the Headings and Body Content. I wanted to use the font in the Small bar above Main Menu. How would i add to that?
- This reply was modified 6 years, 8 months ago by Basilis.
March 8, 2018 at 9:46 pm #924114Hi,
I removed your info for security reasons.
Please create a new ticket.Best regards,
BasilisApril 26, 2018 at 12:50 am #946964Hi! Same issue, is there a resolution? Thanks!
April 27, 2018 at 9:07 am #947730Hi Green Beans Creative,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaApril 27, 2018 at 9:08 am #947731Hi jimmscc,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaApril 27, 2018 at 9:08 am #947733Hi Transformers Universe,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaMay 1, 2018 at 4:10 pm #949567Try this in your child theme functions file instead…
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($google_fonts) { $google_fonts['Your Font Here'] = 'Your Font:300,400 etc'; return $google_fonts; }
(Obviously change the ‘your font’ text depending on which Google font you need to add)
- This reply was modified 6 years, 6 months ago by Dunc R.
-
AuthorPosts
- You must be logged in to reply to this topic.