Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1484669

    Hello

    How can i disable the “new” SVG iconset.

    It does not align the same way as the default icons does, and having 2 sets of the same icons, does not look good in the backend.

    #1484811

    Hey SMA,

    Thank you for the inquiry.

    You can add this filter in the functions.php file to disable the SVG icon sets.

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

    Best regards,
    Ismael

    #1484853

    Hello Ismael

    Thank you for the help. It is working but i wonder how i can also disable the top row of icons which seems to be duplicate of icons which are already there.
    Its called:
    Iconfont: Entypo Fontello Enfold (Default)
    and contains like 12-15 icons

    #1484960

    Hi,

    Thank you for the update. Try to replace the filter with the following code to completely disable the icon set dropdown.

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

    Best regards,
    Ismael

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