-
AuthorPosts
-
November 18, 2016 at 4:03 am #713800
hi,
i’m unable to recreate the font you use on enfold creative studio demo on my existing enfold child theme
i added roboto light and roboto thin fonts via php editor but they still don’t match the demoNovember 18, 2016 at 7:31 am #713880Hey kotlus,
Could you post a link to the site in question so that we can take a closer look please?
Best regards,
RikardNovember 21, 2016 at 8:37 pm #714971see link below.
thank youNovember 21, 2016 at 10:07 pm #715024Hey!
Can you please let us know how you added them and what code you used to make them work, with what?
Tanks a lot
Best regards,
BasilisNovember 22, 2016 at 6:22 am #715114i added roboto and roboto thin with shortcode in php file and then under theme options/general styling i added those fonts plus under theme options / advanced styling i changed the h2 and h3 headings to roboto thin and it still doesn’t show up.
November 23, 2016 at 3:58 pm #716005i added roboto and roboto thin with shortcode in php file and then under theme options/general styling i added those fonts plus under theme options / advanced styling i changed the h2 and h3 headings to roboto thin and it still doesn’t show up.
November 23, 2016 at 9:45 pm #716176any suggestions based on the above?
November 23, 2016 at 10:37 pm #716193Hi!
Can we see the code option, so we can be sure you are loading it properly?
Thanks a lotBest regards,
BasilisNovember 23, 2016 at 10:43 pm #716195add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Roboto Light’] = ‘Roboto Light:400,700’;
$fonts[‘Roboto’] = ‘Roboto:400,700,400italic,700italic’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Roboto’] = ‘PT Sans:400,700,400italic,700italic’;
$fonts[‘Roboto Light’] = ‘Roboto Light:400,700’;
return $fonts;
}add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font_new_ones’);
function avia_add_heading_font_new_ones($fonts)
{
$fonts[‘Roboto Thin’] = ‘Roboto Thin:400’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font_new_ones’);
function avia_add_content_font_new_ones($fonts)
{
$fonts[‘Roboto Thin’] = ‘Roboto Thin:400’;
return $fonts;
}November 27, 2016 at 6:39 am #717370Hi,
The filter looks duplicated. Please replace it with the following code.
add_filter( 'avf_google_heading_font', 'avia_add_heading_font'); function avia_add_heading_font($fonts) { $fonts['Roboto Light'] = 'Roboto Light:400,700'; $fonts['Roboto 2'] = 'Roboto:400,700,400italic,700italic'; return $fonts; } add_filter( 'avf_google_content_font', 'avia_add_content_font'); function avia_add_content_font($fonts) { $fonts['Google fonts']['Roboto Light'] = 'Roboto Light:400,700'; $fonts['Google fonts']['Roboto 2'] = 'Roboto:400,700,400italic,700italic'; return $fonts; }
Best regards,
IsmaelNovember 27, 2016 at 3:44 pm #717439it crashed my site when i added your code with the following error:
November 29, 2016 at 4:53 pm #718341Hi,
make sure you pasted the code correctly into functions.php of your child theme.
Send us admin access, so we can have a deeper look into it if it’s still not working for you.
Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.