Skip to content

Snippet: Remove the Theme Icons CSS File

Important: You can now do this via the Theme Panel by enabling "SVG" format icons. This will remove the theme icons CSS file and then load SVG icons only when needed.

By default the Total theme includes a built-in theme icons set which gets loaded via it's own CSS file so if you wish to remove it you can! Below is a snippet you can use to remove the built-in icon font CSS.

 * Remove the theme icons CSS file.
 * @link
add_action( 'wp_enqueue_scripts', function() {
	wp_deregister_style( 'ticons' );
	wp_dequeue_style( 'ticons' );
}, 99 );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top