• Resolved Mariusz Szatkowski

    (@motylanogha)


    Hi, I want to remove Font Awesome and SVG output in the source.
    Therefore I used the following hooks.
    I disabled FA but SVG still appears in the source code.
    Is there any hook or workaround in Elementor to sort that?

    Much appreciated.

    
    //Disable icons:
    add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 );
    function remove_default_stylesheet() {
    	wp_deregister_style( 'elementor-icons' );
    }
     
    //Disable Font Awesome:
    add_action('elementor/frontend/after_register_styles',function() {
    	foreach( [ 'solid', 'regular', 'brands' ] as $style ) {
    		wp_deregister_style( 'elementor-icons-fa-' . $style );
    	}
    }, 20 );
    
  • The topic ‘Remove SVG and Font Awesome’ is closed to new replies.