• 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

WordPress menu shooting blanks

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 › WordPress menu shooting blanks

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 6 years ago by Victor Font.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 29, 2017 at 2:06 am #203992
    SRD
    Member

    On a site using a custom Genesis child theme, I made the change from:

    <?php wp_nav_menu(array('theme location'=>'primary', 'menu'=>'main_menu ', 'items_wrap' => '<ul id="" class=""></ul>',));?>

    to

    <?php genesis_do_nav(); ?>

    and after that nothing was output by genesis_do_nav().

    I reverted the change, and now I receive an empty <ul>.

    I've checked my functions.php and it is identical to when the menu was displayed with the original menu code.

    I've confirmed in Appearance > Menus that the correct menu is assigned to the correct menu location.

    Help appreciated.

    March 29, 2017 at 8:27 am #203998
    Victor Font
    Moderator

    I can't think of any reason why that code would be in functions.php in the first place, especially wrapped in the php tags. It doesn't make sense. Are you sure that code was in functions.php and not a custom header.php?

    At this point, I would restore from backup and start over.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 29, 2017 at 7:10 pm #204025
    SRD
    Member

    Thanks Victor,

    Which code are you referring to?

    I have restored from backup and the issue remains. 🙁

    March 29, 2017 at 9:16 pm #204026
    Victor Font
    Moderator

    The wp_nav_menu code.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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