• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Genesis Snippets

A reference for Genesis theme developers

  • Home
  • Archives
  • Search Genesis Snippets

Force Superfish menus

March 20, 2012 By David Wang

Force the Superfish script to be activated on navigation menus using the genesis_pre_get_option_ filter.

add_filter( 'genesis_pre_get_option_nav_superfish', 'nrp_get_option_nav_superfish' );
function nrp_get_option_nav_superfish( $opt ) {
	$opt = '1';
	return $opt;
}

Tip: Use this in conjunction with removing unused theme settings metaboxes so that users are not confused with why their settings are not being saved.

Filed Under: Genesis Tagged With: menu, navigation, theme options

Reader Interactions

Comments

  1. John says

    June 5, 2012 at 2:39 pm

    Is superfish supposed to be enable when I activate fancy dropdowns. If so any idea why I don’t get the delay effect here?
    http://whitestone.cleansupersites.com/
    Just want to know before I start wasting more time.
    Thanks very much,
    John

  2. David says

    June 5, 2012 at 3:27 pm

    Hi John. Fancy dropdowns *is* superfish. So if you have that option checked in Genesis → Theme Settings, superfish is automatically activated.

    This snippet is for when you remove user control of the navigation menus and want to ensure that superfish is still enabled. Make sense?

    • Henry says

      August 8, 2012 at 7:07 pm

      My drop down menu isnt working at all here. What do I do? Here is my site address http://www.creedsenergy.com/energy

    • Henry says

      August 8, 2012 at 7:08 pm

      Sorry here is the coreect reply. My drop down menu isnt working at all here. What do I do? Here is my site address http://www.creedsenergy.com/demo

Primary Sidebar

Brought to you by ClickWP
Buy the Genesis Theme Framework

Who’s behind this?

Hi! I'm David and I'm a big Genesis fan. I've been using it in all my projects and have found it to be super powerful.

I started this site to keep track of all the snippets that I've been using in my projects and so that it's easy for me to find them again instead of digging through my old project files.

Help support this site by buying Genesis with our affiliate links. Thanks!

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 354 other subscribers

Browse Snippets

branding cache comments css custom post type doctype entry footer entry header favicon featured image genesis_custom_loop images internet explorer jetpack loop media menu metabox minify navigation oembed page layouts performance plugin integration post thumbnail shortcode sidebars theme options widget areas widgets WooCommerce WordPress
Everything you need to support your online business
Take WordPress further with the Genesis framework

Copyright © 2025 · Genesis Sample On Genesis Framework · WordPress · Log in