Hi there,
I added the below to the bottom of the child theme functions php file according to instructions. however this seems to be breaking the site.
any ideas?
thanks
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Pathway Gothic One’] = ‘Pathway Gothic One:300,400,500,600,700,800’;
return $fonts;
}
add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{
$fonts[‘Pathway Gothic One’] = ‘Pathway Gothic One:300,400,500,600,700,800’;
return $fonts;
}
Hey clairemartindigital,
It could be the quotes used there, they are not really the ones used in code, so try this code here
add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
function avia_add_heading_font($fonts)
{
$fonts['Pathway Gothic One'] = 'Pathway Gothic One:300,400,500,600,700,800';
return $fonts;
}
add_filter( 'avf_google_content_font', 'avia_add_content_font');
function avia_add_content_font($fonts)
{
$fonts['Pathway Gothic One'] = 'Pathway Gothic One:300,400,500,600,700,800';
return $fonts;
}
If you need further assistance please let us know.
Best regards,
Victoria
Hi Viktoria,
thanks that worked.
How can i now use the font for any other non header tags?
Thanks
Hi clairemartindigital,
Here is an example:
p { font-family: Pathway Gothic One, sans-serif; }
But I don’t see the font on your website yet.
Best regards,
Victoria
thanks, you can close this