Disable Superfish Script

< 1 min read

Unless otherwise indicated, the code snippets you see below should be placed into your theme’s functions.php file.

Here is the code to disable superfish script on your site:

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
 
//* Disable the superfish script
add_action( 'wp_enqueue_scripts', 'sp_disable_superfish' );
function sp_disable_superfish() {
	wp_deregister_script( 'superfish' );
	wp_deregister_script( 'superfish-args' );
}

What are your feelings

  • Happy
  • Normal
  • Sad