• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Dev Tips / Genesis Remove Superfish JavaScript

Genesis Remove Superfish JavaScript

Last updated on August 13, 2018 by Sal Ferrarello

By default the WordPress Genesis theme framework loads the jQuery Superfish Menu Plugin to help the menu display properly.

If you’re displaying your menu in a way that doesn’t need Superfish, you can remove it with the following code.

add_action( 'wp_enqueue_scripts', 'fe_remove_superfish', 100 );
function fe_remove_superfish() {
    wp_dequeue_script( 'superfish' );
    wp_dequeue_script( 'superfish-args' );
}
Sal Ferrarello
Sal Ferrarello (@salcode)
Sal is a PHP developer with a focus on the WordPress platform. He is a conference speaker with a background including Piano Player, Radio DJ, Magician/Juggler, Beach Photographer, and High School Math Teacher. Sal can be found professionally at WebDevStudios, where he works as a senior backend engineer.

Share this post:

Share on TwitterShare on FacebookShare on LinkedInShare on EmailShare on Reddit
Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming Tagged With: Genesis, WordPress Theme

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in