Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #575551

    Ahoy –

    I’m trying to add 2 google fonts to enfold but when I add these functions twice things get haywired…

    I’m using this post

    https://kriesi.at/support/topic/add-new-font/?login_error#post-234710

    I’m trying to add Sans Source Pro and Noto Serif

    Please advise

    #575899

    Hey mcraig77!

    Do you mind creating a temporary admin login and posting it here privately so we can make the change for you? Solution provided here – http://kriesi.at/documentation/enfold/register-additional-google-fonts-for-theme-options/ should have worked.

    Cheers!
    Yigit

    #576012

    Sure! Thanks!

    Im using a custom functions plugin to add that code.

    #576733

    Hey!

    Please use a plugin to add google fonts to your wordpress site https://wordpress.org/plugins/search.php?q=google+fonts

    Best regards,
    Vinay

    • This reply was modified 8 years, 2 months ago by Vinay.
    #576933

    Cool plugin!

    I got the bulk of the text changed but it looks like I need to make custom area certain areas.

    Can you guide me on css for the following:

    Navigation Menu: screenshot 1

    Pacific Flyway: Screenshot 2

    Socket Text: Screenshot 3

    #577567

    Hi,

    Could you post a link to your site as well please? We need to inspect the elements in question.

    Regards,
    Rikard

    #577570

    Here ya go!

    #578252

    Hi!

    We added the google filter in your functions.php file around line 18:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts)
    {
    $fonts['Source Sans Pro'] = 'Source+Sans+Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic,900,900italic';
    $fonts['Noto Serif'] = 'Noto+Serif:400,400italic,700,700italic';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts)
    {
    $fonts['Google fonts']['Source Sans Pro'] = 'Source+Sans+Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic,900,900italic';
    $fonts['Google fonts']['Noto Serif'] = 'Noto+Serif:400,400italic,700,700italic';
    return $fonts;
    }
    

    You can now select the fonts in the General Styling > Fonts panel. You’ll find them at the very end of the dropdown. If you need to alter certain elements in the theme, please go to the Advanced Styling panel or use the Quick CSS field.

    NOTE: Please create a child theme so that you can move the filter in the child theme’s functions.php file: http://kriesi.at/documentation/enfold/using-a-child-theme/

    Best regards,
    Ismael

    #578336

    Ahoy –

    Can I get that code added to the custom function widget or google analytics area instead? I need to have the site updatable…

    Thanks!

    #578376

    Hey!

    You can try that it might work but using a child theme is a much better way to do this. Once you activate the child theme you can enter this code into theme via Appearance > Editor > functions.php

    Please refer to the link below to setup a child theme http://kriesi.at/documentation/enfold/using-a-child-theme/

    Cheers!
    Vinay Kashyap

    #578387

    Ahoy –

    Im not going to lie Ive never used a child theme. For the time being can you remove that code – I’m going to try and see if those other options will work… if not I will try the child theme

    #579632

    Hi!

    please remove the code in question by yourself.

    Let us know in a new ticket if you have some more questions related to the theme, where you need assistance and guidance.

    Best regards,
    Andy

    #580074

    OK that works but I’m still having an issue. I need the weight to be Source Sans Pro 200 for the menu links…

    Please advise

    #580844

    Hey!

    Add this in the Quick CSS field:

    .av-main-nav > li > a {
        font-weight: 200;
    }

    Best regards,
    Ismael

    #908146

    Hello,

    I installed a pluging (Easy Google Fonts) in order to add more fonts without having to edit the functions.php – however, in spite of having a correct Google Fonts API key, nothing happens – I only see the standard 9 fonts?

    #908223

    Hi,

    Could you please contact the plugin developer, so they can be able to help you with that?

    Best regards,
    Basilis

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.