Code Snippets

Unregister Superfish Scripts in Genesis

Genesis loads two Superfish Scripts for the menu system. If you're not using drop-down menus, or if you're using drop downs but don't care about the elegant effect provided by Superfish, you can unregister the scripts.

Simple functions.php code snippet for unregistering the Superfish Scripts in Genesis WordPress themes.

// Unregister the superfish scripts
add_action( 'wp_enqueue_scripts', 'unregister_superfish' );
function unregister_superfish() {
	wp_deregister_script( 'superfish' );
	wp_deregister_script( 'superfish-args' );
}

Hire a WordPress Expert

Get hourly and project based theme customization, theme tweaks, and development help from an experienced Kelowna WordPress developer.  We’ve been building WordPress websites full-time for over a decade. We can help you.