• 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

Move secondary nav to show under slider – Executive theme

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 › Move secondary nav to show under slider – Executive theme

This topic is: not resolved

Tagged: Executive theme, Secondary navigations

  • This topic has 8 replies, 3 voices, and was last updated 7 years, 7 months ago by michelefree.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • July 24, 2013 at 10:16 pm #52407
    Anahere
    Member

    Hi,
    I am using executive theme and genesis slider and am trying to move the secondary nav to sit under the slider not above it. I have a custom menu in the header, which is what I want but it means the secondary nav would look better under the slider and above the home middle widgets.
    Can anyone tell me what I need to do?
    http://174.132.169.60/~mobinoma/
    Cheers, A

    http://174.132.169.60/~mobinoma/
    July 24, 2013 at 10:22 pm #52408
    nunotmp
    Member

    I am not sure if you are comfortable using the functions.php file but something like this should work

    
    remove_action( 'genesis_after_header', 'genesis_do_subnav' );
    add_action( 'genesis_before_content', 'genesis_do_subnav' );
    

    Genesis Child Themes – Follow Me

    July 24, 2013 at 10:30 pm #52410
    Anahere
    Member

    Thanks Nunotmp, will give that a go.
    A.

    July 24, 2013 at 10:35 pm #52412
    Anahere
    Member

    Should I be adding the code before or after anything specific? I am presuming this is in the editor area of WP Appearance and not in my Cpanel php admin area.

    July 25, 2013 at 7:57 am #52440
    nunotmp
    Member

    If you are unfamiliar with the functions.php file I would advise not to do it. If you were to accidentally leave out something like a semicolon then your site would break. The code should go at the bottom of your functions.php if you would like to try it out and have ftp access.


    Genesis Child Themes – Follow Me

    July 25, 2013 at 5:49 pm #52528
    Anahere
    Member

    Well, lesson learnt... I broke the site, I have an error message that I have an extra syntax } on line 177.

    I'm in the file manager area of my cpanel and can see functions under WP content themes but now I am not sure if the formatting.php is the place I need to be. Any suggestions?
    Also, how do i know which is line 177?

    A.

    July 25, 2013 at 5:56 pm #52529
    Anahere
    Member

    Found the problem... wp content / themes / executive / functions - now all fixed.
    Alas, it looks like I am stuck with the Nav above the slider so I am back to square one.
    Appreciate your help though.
    A.

    August 26, 2015 at 9:21 pm #163687
    michelefree
    Member

    I am also trying to put my menu directly below the slider, and have it map over the slider a bit.

    Have you tried placing the "Custom Menu" widget in your "Home-Top" widget? Also, you could make a "menu-under-slider" widget and put the "Custom Menu" widget in it, if you're using home-top for something else.

    The code that nunotmp is talking about is discussed here: http://my.studiopress.com/snippets/navigation-menus/#reposition-secondary. Maybe that can help you to get your menu in the right Genesis Simple Hook.

    The hooks are laid out here: http://genesistutorials.com/visual-hook-guide/. So nuntmp was advising you to place your menu in the "genesis_before_content" hook.

    These lines of code below are put at the end of your functions.php file in the Appearance->Editor. I'd advise reading about this before you try it. Then you can experiment putting your menu into different hooks until you get the one you want.

    But I think the most simple thing to do is to put the Custom Menu widget into the home-top widget. Please let me know waht works for you!

    remove_action( 'genesis_after_header', 'genesis_do_subnav' );
    add_action( 'genesis_before_content', 'genesis_do_subnav' );

    August 26, 2015 at 9:41 pm #163690
    michelefree
    Member

    PS Get the Genesis Visual Hooks plugin. It maps out where the hooks are on your page. It's awesome!

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

© 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