Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1017507

    Hello,
    I’m trying to change the default font to Crimson-Roman. I added the following to functions.php, but it doesn’t work. Please help.

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Crimson-Roman’] = ‘Crimson-Roman:400,700’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘Crimson-Roman’] = ‘Crimson-Roman:400,700’;
    return $fonts;
    }

    #1017692

    Hey Susanne,

    Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1017823

    Hi Rikard, Please find login credentials below.
    Thank you!

    #1018110

    Hi Susanne,

    Thanks for that, does your website have a URL as well? :-)

    Best regards,
    Rikard

    #1018242

    Sorry Rikard, stupid me. Please see below. It’s in maintenance mode.

    #1018393

    Hi,

    Thanks for the that, I see that your site is not using that font. But it looks like that font is not available at Google Fonts? https://fonts.google.com/?query=crimson

    Best regards,
    Rikard

    #1018472

    Rikard,
    But your link shows that the font IS available on google fonts? See here: https://fonts.google.com/specimen/Crimson+Text
    I’ve now changed it to Crimson Text in functions, but it still doesn’t work.
    What’s going wrong?
    Thanks for your help.

    #1018535

    Actually, no other font works – whatever I change it to on the Enfold Font choices. Any idea why not? It always shows the default font.

    #1018596

    Hi,

    Yes, Crimson Text, but you are importing Crimson Roman. Could you try changing the name in your code? I see that you have selected Georgia now, and that is displaying fine on my end.

    Best regards,
    Rikard

    #1018633

    Rikard,
    I have changed the code to Crimson Roman, and now it’s back to just the default Enfold font (Helvetiva???) – please see.
    Can you try to change the font to Crimson Roman please? I would be so grateful!

    #1018704

    Hi there,
    I’ve now found a solution by installing the plugin “Easy google fonts”. A bit complicated, but it does the job.
    Thanks!

    #1018809

    Hi,

    Great, glad you found a solution and thanks for sharing. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1018875

    Hi Rikard,
    Yes, please close the topic.
    Thank you!

    #1019023

    Hi Susanne,

    Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘change default font’ is closed to new replies.