skip to Main Content

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 https://total.wpexplorer.com/docs/snippets/remove-ticons-css/
 */
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 the Code Snippets Plugin (or alternative plugin)
Back To Top