Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1496158

    Hi team,

    I’ve replaced all instances of legacy icon fonts with the new SVG versions, but the icon font file (/entypo-fontello-enfold/entypo-fontello-enfold.woff2) still loads – what is the reason for this and is there a way to prevent this?

    Please see private

    Thanks.

    #1496159

    i guess that these few icons (Entypo Fontello Enfold (Default)) are needed inside the enfold admin settings

    allthough there is an entypo-fontello-enfold/charmap-svg.php for those icons

    #1496244

    Hi,
    When I check on my test site adding this to the top of my child theme, or parent right after if( ! defined( ‘ABSPATH’ ) ) { exit; } prevents entypo-fontello-enfold.woff2 from loading:

    function avf_custom_font_display( $font_display, $font_name )
    {
    	if( 'entypo-fontello' == $font_name )
    	{
    		return 'swap';
    	}
    
    	return $font_display;
    }
    
    add_filter( 'avf_font_display', 'avf_custom_font_display', 10, 2 );

    If you still have some css calling the entypo-fontello font, such as the submenu-indicator, you will need to override the css like this:

    .html_av-submenu-hidden .av-submenu-indicator:before {
        content: ">";
        font-family: svg_entypo-fontello;
    } 

    Best regards,
    Mike

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