Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1483702

    Hello, support, happy to see you again.

    I disabled iconfont as suggested here: https://kriesi.at/support/topic/completely-remove-entypo-fontello/
    adding to child theme: add_filter(‘avf_default_iconfont’, function($icon_font) { return array(); }, 10, 1);

    Website skyrocketed the speed, but advanced page builder works only after commenting this line and cleaning cache.
    Could you suggest effective way to get rid of this font preserving functionality of the advanced builder.

    Thank you!

    • This topic was modified 1 month, 3 weeks ago by ibuzaev.
    • This topic was modified 1 month, 3 weeks ago by ibuzaev.
    #1483727

    Hey ibuzaev,

    Thank you for the inquiry.

    Please note that this will disable the default icons in the theme. If you’re not using them, try to replace the filter with this:

    add_filter('avf_default_iconfont', function($icon_font) {
        return array(
            'svg_entypo-fontello' => array(
                'append'     => '',
                'include'    => '',
                'folder'     => '',
                'config'     => '',
                'json'       => '',
                'full_path'  => false
            ),
            'entypo-fontello-enfold' => array(
                'append'     => '',
                'include'    => '',
                'folder'     => '',
                'config'     => '',
                'json'       => '',
                'svg_files'  => '',
                'full_path'  => false
            ),
            'entypo-fontello' => array(
                'append'     => '',
                'include'    => '',
                'folder'     => '',
                'config'     => '',
                'json'       => '',
                'svg_files'  => '',
                'full_path'  => '',
                'is_active'  => 'no'
            )
        );
    }, 10, 1);
    

    Best regards,
    Ismael

    #1484163

    Dear Ismael!

    Thank you very much for your help.
    My main aim is to get rid of heavy entypo-fontello.* and CORs error related to them (which my CDN provider could not resolve).

    My filter significantly reduce number of https requests and speed-up my site dramatically, but the page builders do not work correctly.
    https://disk.yandex.ru/i/dMES8fuS5XsYnA

    But if I add suggested filter I still have fontellos.
    Suggested solution does not reach the goal to exclude fontellos, it just makes them unusable.
    https://disk.yandex.ru/i/erBOUbTZ6j2R9A

    Please see the screenshots.
    My website is https://buzaevclinic.ru

    Could you help me to disable this font preserving other functionality? I prefer speed over icons.

    Sincerely yours,
    Igor

    #1484191

    Hi,

    Thank you for the update.

    The suggested filter does allow the font to load, but since the path is incorrect, the font list won’t load, leading to a 404 error. Try to use this filter instead:

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

    Best regards,
    Ismael

    #1484224

    Thank you very much, Ismael,

    Now everything is much better.
    1. Now site do not request font and advanced page builder is working,
    but squares appeared on the place of icon.
    Could we hide them?

    2. Is it possible somehow inject custom svg at the place of an icon?

    Sincerely yours,
    Igor

    #1484269

    Hi,

    Thank you for the update. With entypo-fontello disabled, you won’t be able to use the default icons on the page. You will need to replace them with images or SVG icons manually. Unfortunately, it’s not possible to automatically inject SVG icons as a replacement for the icon fonts.

    Best regards,
    Ismael

    #1484288

    Dear Ismael,
    thank you for your suggestion,
    Is it possible to get rid of these squares at all?
    Having NULL on these pictogram places.
    Sincerely yours,
    Igor

    #1484315

    Hi,

    Is it possible to get rid of these squares at all?

    You can add this css code, but please note that this will hide all icon elements in the site.

    .iconlist-char {
        display: none;
    }

    Thank you for your patience.

    Best regards,
    Ismael

    #1484865

    Dear Ismael,
    thank you very much.
    this worked almost very well.
    Could you please help with icons in the list also.
    See example here: https://buzaevclinic.ru/research/
    Thank you a lot!
    Sincerely yours,
    Igor

    #1484888

    Hi,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .fallback-post-type-icon {
    	display: none;
    }

    Best regards,
    Mike

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