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

    Hi,

    I am trying to upload a Google Font (Suez One) into my Enfold them. I have tried to follow the instructions given here: https://kriesi.at/documentation/enfold/typography/ however my Import / Export tab on my Enfold (Child) theme is not the same as that shown.

    Instead of the section Custom Font Manager under Import / Export, my theme is showing IconFont Manager. Also, where the instructions button says Upload / Select Font Zip File, my theme says Upload / Select Fontello Font Zip.

    A screenshot of the Import / Export tab can be seen here: https://1drv.ms/u/s!AnfCo4UK3bBVieMJ4zf7NpTDuA7fFA?e=sxDTgE

    For info, I have also activated the Enfold Parent theme and it is the same.

    Please can you advise or assist? I have included login details in Private Content in case it is required.

    Regards

    Ray

    #1138396

    Hey Mulholr1,
    Thank you for the login, the reason you are not seeing the custom font importer is because you are using Enfold v4.1.2
    Please update your theme, please note you will have to update via ftp because with this version the auto updater will not work.
    The easiest and safest way to do this is to download the newest version from Theme Forest and rename your current theme to “enfold-old” via ftp then upload the new “enfold” and check that your site is working correctly.
    Once you are happy you can delete the “enfold-old” via ftp, (not the WP theme page)
    Should for some reason you wish to roll-back to the old version, it’s easy to do, simply rename the new “enfold” to “enfold-new” via ftp and then rename “enfold-old” to “enfold” then refresh your page.
    Please don’t try to overwrite the theme folder, as this will leave old files behind and cause errors.

    Best regards,
    Mike

    #1138485

    Hi Mike
    Thanks for your quick and full reply.
    I’ve done as you instructed but unfortunately this won’t work out for me are some APIs within a Gravity Form on the site and their functionality disappears with upgrading to the latest Enfold file – so I’ve had to roll back to the version I previously had.
    Is there a way to upload the font files directly into the theme via FTP?
    Many thanks
    Ray

    #1138540

    Hi,
    Try adding this code to the end of your child theme functions.php file in Appearance > Editor:

    add_filter( 'avf_google_heading_font',  'avia_add_heading_font');
    function avia_add_heading_font($fonts){
    $fonts['Suez One'] = 'Suez One';
    return $fonts;
    }
    
    add_filter( 'avf_google_content_font',  'avia_add_content_font');
    function avia_add_content_font($fonts){
    $fonts['Suez One'] = 'Suez One';
    return $fonts;
    }
    function add_suez_one_font(){
    ?>
    <link href="https://fonts.googleapis.com/css?family=Suez+One&display=swap&subset=hebrew,latin-ext" rel="stylesheet">
    <?php
    }
    add_action('wp_head', 'add_suez_one_font');

    When the font is selected in the theme settings:
    2019-09-15-121027
    Results:
    2019-09-15-115308
    For future readers, this is for an older version and is not needed or recommended for v4.6+

    Best regards,
    Mike

    #1141034

    MIke that worked perfectly – thank you for your time and guidance. Please feel free to mark the psot closed and solved.

    #1141248

    Hi,

    Great, I’m glad that Mike could help you out and thanks for the feedback. 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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Unable To Upload Google Font Into Enfold’ is closed to new replies.