-
AuthorPosts
-
February 5, 2018 at 4:57 pm #908091
Hi guys,
I tried adding a new Google Font to my Child Theme using this code:
if(isset($avia_config[‘use_child_theme_functions_only’])) return;
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
$fonts[‘Josefin Sans’] = ‘Josefin Sans:300,300i,400,400i,700,700i’;
return $fonts;add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
$fonts[‘Josefin Sans’] = ‘Josefin Sans:300,300i,400,400i,700,700i’;
return $fonts;But the font only appears in the Heading font and not in the content font options… Do you guys have any idea of what I am doing wrong ?
- This topic was modified 6 years, 10 months ago by pberquet.
February 5, 2018 at 9:27 pm #908210Hey pberquet,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.Best regards,
BasilisFebruary 6, 2018 at 11:25 am #908476Hi,
Thanks for the quick response. I added a user for your guys: details in private content
February 7, 2018 at 9:03 am #908961Hi pberquet,
The code you’re using is not correct. Here is the correct code
If you need further assistance please let us know.
Best regards,
VictoriaFebruary 8, 2018 at 11:42 am #909704Hi,
This code doesn’t work either. I am getting this message :
“Cannot redeclare avia_add_heading_font() (previously declared in wp-content/themes/enfold-child/functions.php:13)”
February 8, 2018 at 10:01 pm #909973Hi,
That means you have added the code before and you have loaded new fonts already!
Best regards,
BasilisFebruary 9, 2018 at 10:37 am #910182Yes but the problem was that my font doesn’t appear in the content font options…
February 12, 2018 at 2:09 am #910865Hi,
We modified the code a bit. The font is now selectable under the Fonts > Body text > Google fonts section.
Best regards,
IsmaelFebruary 12, 2018 at 10:16 am #910976Thanks ♥️
February 12, 2018 at 11:59 am #911047Hi pberquet,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.