• 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

Positioning the second navigation menu differently

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 › Design Tips and Tricks › Positioning the second navigation menu differently

This topic is: not resolved

Tagged: navigation, optimal theme

  • This topic has 5 replies, 3 voices, and was last updated 13 years, 7 months ago by cehwitham.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 21, 2013 at 11:30 pm #22150
    Amber
    Member

    Hello all! I was hoping for some insight as to the best way to have a secondary navigation menu floated right in my #nav div. I am using the optimal theme and this is my website so far. I'm hoping to have 2 navigation menus, one floated left and the other right (like another website I did here).

    I know how I would do this in a standard wordpress theme such as twenty eleven but I'm pretty new to Studio Press and it's backed code & hooks (a bit different, easier I bet but to a newbie it'll take a bit) so I'm at a loss of where I can add this second menu in the home.php file. Should I just activate the second navigation and move it down with CSS or can I take a hook or line of code from the home.php file so it's in place as to where I want it?

    Any help is appreciated. 🙂

    February 22, 2013 at 4:55 am #22191
    cehwitham
    Participant

    I would enable the secondary navigation under Genesis > Theme Settings and then assign a menu to it and move it into place using CSS similar to the way you've positioned the primary navigation.


    Twitter: cehwitham Web: cehwitham.com

    February 23, 2013 at 4:27 pm #22460
    Amber
    Member

    Hmm..I'm looking at it now and I could move it around with CSS but beacue it's in it's own containing div and not the #nav div I'd have to position it absolutely and then that just cases a heck of a lot of trouble. Where on the home page can I make it so the secondary navigation is at least in the #nav menu? There's gotta be a way.. This is the new website link

    February 23, 2013 at 5:14 pm #22467
    marybaum
    Participant

    I agree about not positioning it absolutely. (Blergh.)

    What about using a function to unhook it from its own div and hook it into the nav div - then float it right? You'll prolly want to widen the nav wrap. Or you could take the secondary nav, keep it in ins div and either hook the menu in the nav div or the nav wrap, OR drop the menu into the menu widget in the header- right widget area.

    Those would be my thoughts.


    Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀

    February 24, 2013 at 1:40 pm #22557
    Amber
    Member

    I absolutely love those ideas marybaum! I'd prefer to unhook it and then hook it back in the nav wrap however I believe then I'd do this on the home.php page?

    This is the top of my home.php page. I'm not sure where to even find the nav information.

     

    <?php

    add_action( 'genesis_meta', 'optimal_home_genesis_meta' );
    /**
    * Add widget support for homepage. If no widgets active, display the default loop.
    *
    */
    function optimal_home_genesis_meta() {

    if ( is_active_sidebar( 'slider' ) || is_active_sidebar( 'welcome' ) || is_active_sidebar( 'home-feature-sidebar' ) || is_active_sidebar( 'home-feature-1' ) || is_active_sidebar( 'home-feature-2' ) || is_active_sidebar( 'home-bottom-sidebar' ) || is_active_sidebar( 'home-featured-posts' ) || is_active_sidebar( 'home-bottom-message' ) ) {

    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_after_header', 'optimal_home_loop_helper_top' );
    add_action( 'genesis_loop', 'optimal_home_loop_helper_middle' );
    add_action( 'genesis_loop', 'optimal_home_loop_helper' );
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    }
    }

     

    February 25, 2013 at 5:05 pm #22782
    cehwitham
    Participant

    Hi Amber,

    If you want your menu changes to be seen on all pages not just the home page, you'll want to add your code to functions.php rather than home.php.

    Both the Primary and Secondary navigation menus are added to genesis_after_header as standard. To unhook the secondary navigation you'd need to use the following:

    remove_action( 'genesis_after_header', 'genesis_do_subnav' );

    You may find the following article useful in changing the content of the menu: http://www.billerickson.net/genesis-wordpress-nav-menu-content/


    Twitter: cehwitham Web: cehwitham.com

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ 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

© 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