Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #799980

    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;
    }

    #800154

    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

    #800436

    Hi Viktoria,

    thanks that worked.

    How can i now use the font for any other non header tags?

    Thanks

    #800756

    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

    #803224

    thanks, you can close this

    #803299

    Hi,

    Thanks for that. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Adding google font breaking the site’ is closed to new replies.