• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

[Crave] Sub-menus aren't showing in secondary nav

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › [Crave] Sub-menus aren't showing in secondary nav

This topic is: resolved

Tagged: crave, responsive menus, sub menus, Submenus

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 1 month ago by Vanessa.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 2, 2015 at 4:46 pm #139454
    Vanessa
    Member

    Hello! I'm using the Crave theme which only came with a primary nav. I wanted to add a secondary nav so I edited the menu functions to this in my functions.php:

    //* Genesis menus
    
    add_theme_support(
      'genesis-menus', 
    	array(
    		'primary'   => __( 'Primary Navigation Menu', 'child-domain' ),
    		'secondary' => __( 'Secondary Navigation Menu', 'child-domain' ), 
    		'top'       => __( 'Top Navigation Menu', 'child-domain' ), 
    	)
    );
    
    //* Move Primary Nav above header
    
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_before_header', 'genesis_do_nav' );
    
    //* Move Secondary Nav above header
    
    remove_action( 'genesis_after_header', 'genesis_do_subnav' );
    add_action( 'genesis_before_header', 'genesis_do_subnav' );

    ...but I have child items in my secondary nav under Our FA Rockstars and they are not showing up. I know I have it set up correctly in Menus (child pages indented under parent page), and when I look at the CSS, I can see that the sub-menu is there (a page called Marysa’s Take), but when I hover over Our FA Rockstars, the child page does not appear or drop down underneath.

    Is it a CSS issue? Or is it something I need to edit in my .js file? Here is the .js file now:

    jQuery(document).ready(function($) {
    
    	$(".menu-primary").addClass("mobile-menu").before('<div id="mobile-menu-icon"></div>');
    	$("#mobile-menu-icon").click(function() {
    		$(".mobile-menu").slideToggle();
    	});
    	$(window).resize(function(){
    		if(window.innerWidth > 768) {
    			$(".mobile-menu").removeAttr("style");
    		}
    	});
    	
    });

    Thank you for any help!

    http://anaphylaxismanagement.com/dev/
    February 2, 2015 at 10:15 pm #139473
    Lauren @ OnceCoupled
    Member

    This is the CSS.

    .menu-primary li ul,
    #menu-secondary-navigation li ul {
    	height: auto;
    	left: -9999px;
    	margin: 0;
    	position: absolute;
    	width: 160px;
    	z-index: 9999;
    }

    Here you see left: -9999px but there's not style along the lines of

    #menu-secondary-navigation li:hover ul {
        left: 0;
        position: relative;
    }

    Which tells the ul to show up if the parent li is hovered.

    Best,
    Lauren


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

    February 11, 2015 at 8:20 am #140467
    Vanessa
    Member

    Thank you @oncecoupled!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘[Crave] Sub-menus aren't showing in secondary nav’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble