I have been using Table of Contents plugin on my website. It is slowing my site but I don't want to remove TOC from my site. Is there any way to dequeue TOC fonts.
I have been using Table of Contents plugin on my website. It is slowing my site but I don't want to remove TOC from my site. Is there any way to dequeue TOC fonts.
Share Improve this question edited Jan 26, 2020 at 6:04 Jacob Peattie 44.2k10 gold badges50 silver badges64 bronze badges asked Jan 26, 2020 at 6:00 SurajSuraj 31 bronze badge1 Answer
Reset to default 0You can use this code
add_action( 'wp_enqueue_scripts', 'dequeue_ez_icomoon', 11 );
function dequeue_ez_icomoon() {
wp_deregister_style( 'ez-icomoon' );
wp_deregister_style( 'ez-toc' );
wp_register_style( 'ez-toc', EZ_TOC_URL . "assets/css/screen.min.css", array(), ezTOC::VERSION );
}