• 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

Alter the HTML structure of the primary navigation in Genesis?

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 › Alter the HTML structure of the primary navigation in Genesis?

This topic is: not resolved

Tagged: filter, menu, nav, navigation, structure, wp_nav_menu

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 3 months ago by Inquinim.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 7, 2017 at 12:02 am #202614
    Inquinim
    Member

    Hi,

    I'm wanting to alter the HTML structure of the primary navigation.

    The function wp_nav_menu() has parameters that you can adjust to do this... and I found out that those can be used as parameters in genesis_nav_menu() but I'm unsure how to go about doing this... All I have in my functions.php file is:

    add_theme_support('genesis-menus', array('primary' => __('Primary Navigation Menu', 'genesis')));

    And then in the WordPress back end, I've placed a menu in the "primary" position. If I manually use genesis_nav_menu() does that not then stop me from choosing the location of the menu in WordPress?

    How should I go about this?

    Cheers

    March 7, 2017 at 12:18 am #202616
    Victor Font
    Moderator

    Genesis eventually calls wp_nav_menu, so you can add a filter to change the arguments. This may help. http://www.billerickson.net/customizing-menu-arguments/


    Regards,

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

    March 7, 2017 at 1:29 am #202620
    Inquinim
    Member

    Great, thanks!

    That's exactly what I was looking for.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

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