Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #761175

    Hi Team,
    is it possible to remove (perhaps per function snippet) the complete entypo-fontello fonts from the site. i use my own icons- so i dont need the entypo icons.

    Thank you

    #761190

    Hey siteraum,

    You want to locate enfold>config-templatebuilder>avia-template-builder>php>font-manager.class.php

    Remove or comment out from line 488: 

    include($config[‘include’].’/’.$config[‘config’]);

    Best regards,
    Jordan Shannon

    #761194

    Hi Jordan,
    thank you for answer. i comment the line out (you can see link- picture) but the entypo-fontello.woff is still loading (see link-picture)

    thank you

    #761198

    Hi,

    The images are not loading for me. You can locate those files at:

    enfold > config-templatebuilder > avia-template-builder > assets > fonts

    Best regards,
    Jordan Shannon

    #761204

    ah sorry for the images- i blocked it,
    i see the fonts in asset> fonts, but how can i remove this? (private link)- i mean that the url complete disable- So the url is not retrieved- sorry about my english…
    when i look in the page source the url to the entypo fonts is there- and i want to remove the url calling
    thank you

    #761208

    Hi,

    You would want to search the root folder and remove all references to those specific files.

    Best regards,
    Jordan Shannon

    #761209

    ah okay thank you Joardan,
    i wish you an nice week

    #761512

    Hi,

    No problem. If you need additional help please do not hesitate to contact us.

    Best regards,
    Jordan Shannon

    #805998

    Jordan- can we disable entypo-fontello in our child theme functions file?

    • This reply was modified 7 years, 5 months ago by etalented.
    #806939

    Hi,

    It would essentially be the same thing, you would have to cover every instance it within the theme.

    Best regards,
    Jordan Shannon

    #1230234

    I found a way to do that without modify core files:

    //Delete icons from Enfold
    add_filter('avf_default_iconfont','avia_change_default_icon_font_para', 10, 1);
    function avia_change_default_icon_font_para($fonts)
    {
            return null;
    }

    Regards,

    • This reply was modified 4 years, 4 months ago by vgsystems.
    #1230379

    Hi,

    Thank you for sharing!

    Best regards,
    Jordan Shannon

    #1344530

    Hi,

    what would @vgsystems solution look like for the newest enfold version? (using a child theme)

    Best regards

    #1344692

    Hi,

    @webpunks: The same filter (avf_default_iconfont) should still work in the latest version of the theme.

    // disable entypo-fontello 
    add_filter('avf_default_iconfont', function($icon_font) {
        return null;
    }, 10, 1);
    

    Best regards,
    Ismael

    #1344696

    Hi @Ismael!

    Unfortunately, this leads to a Fatal error: Uncaught TypeError: array_merge():
    Argument #1 must be of type array, null given in //wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-font-manager.php:428

    Best regards

    #1344728

    Hi,
    I tested this filter at the top of my child theme functions.php and it worked correctly with no error in v4.9 in a new install

    // disable entypo-fontello 
    add_filter('avf_default_iconfont', function($icon_font) {
        return null;
    }, 10, 1);

    perhaps you have another customization causing a conflict.
    Please note that if you use this function you will not be able to use the Iconfont Manager in the theme options.

    Best regards,
    Mike

    #1344745

    Hi @Mike,

    thank you for testing. We found out, that the problem only appears when using custom fonts. We are not using the iconfont manager but it seems it is also related to the custom font manager… is there a way to remove entypo-fontello AND using a custom font (not a custom icon font)?

    Best regards

    #1344811

    Hi,
    I tested with the function above and installed a new font with the Custom Font Manager with no issues. Try extracting your custom font zip file and rezip only the font file with no inner directories and extra files. For example, some custom fonts place the file in a zip inside the zip.

    Best regards,
    Mike

    #1345015

    Hi @Mike,

    thank you. We tested the same, and it worked now – but it only worked on 1 of 2 servers. We made a test with PHP 7.4 and 8.0 – both with clean installs.

    On our cloudways server (PHP 8) it throws the following error:

    PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-font-manager.php:428

    This happens on a new site, clean install, fresh child theme and only inserted the code given in the functions.php. On our other server (hetzner, PHP 7.4) the same test works fine without errors.

    By the way the error is already thrown inside WordPress Admin when opening the Enfold Settings.

    Could the problem be related to the PHP version?

    Best regards

    #1345096

    Hi,
    Thanks for the feedback, I tested with PHP v8 and also received the error, I submitted this to the Dev Team and will reply here when I hear back.
    Thank you for your patience

    Best regards,
    Mike

    #1345192

    Hi,
    The Dev Team has replied with this function and I tested it on PHP v8 and it is working.

    add_filter('avf_default_iconfont', function($icon_font) { return array(); }, 10, 1);  

    Thank you for your patience

    Best regards,
    Mike

    #1345240

    Hi @Mike,

    thank you – worked! :-)

    Best regards

    #1345246

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 23 posts - 1 through 23 (of 23 total)
  • The topic ‘Completely remove entypo-fontello’ is closed to new replies.