• 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 Genesis Nav to above the header in sample 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 › General Discussion › Move Genesis Nav to above the header in sample theme

This topic is: resolved

Tagged: header, Sample Theme

  • This topic has 5 replies, 2 voices, and was last updated 11 years, 9 months ago by David Chu.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 15, 2014 at 6:29 am #105273
    Zach Russell
    Member

    I am building a custom site where i'll be customizing the sample theme. I originally moved the code to the genesis_before_header action hook, but I realized that I actually need it within the <header> to style it appropriately. I tried this code and it didn't work:

    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_header', 'genesis_do_nav', 1);

    Any ideas on how to get this to work?


    ———-
    Zach Russell
    President, ProTech Internet Group

    May 15, 2014 at 7:37 am #105284
    David Chu
    Participant

    Hi,
    Give this a try. 🙂 It moves in into the header. It does create some styling differences because of the context, though!

    add_action( 'genesis_header', 'genesis_do_nav', 12);

    Cheers, Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    May 15, 2014 at 7:50 am #105286
    Zach Russell
    Member

    Hello David,

    Thank you for the quick response! That executes genesis_do_nav() in the <header> element, but does it at the bottom. I need this to execute before anything else in the header. Meaning before the site title/header image and header right, but still within the n<head> element.

    Does that make sense?

    Thanks


    ———-
    Zach Russell
    President, ProTech Internet Group

    May 15, 2014 at 8:07 am #105297
    David Chu
    Participant

    Zach,
    Yes, I do get it. Now that Genesis 2 is all HTML5, some experimentation is needed with priority to get things exactly where you want them. Because that's sort of a big secret, I wrote an article about that, but I didn't mention the header, I mostly concentrated on the content area. So I'd suggest playing with the number, and see what you get.

    My own tendency is to get things in the general area, and because of my CSS knowledge, I can finesse whatever I need that way.

    Good luck,
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    May 15, 2014 at 8:43 am #105303
    Zach Russell
    Member

    Thanks David,

    Looks like a priority of 5 did the trick!

    Cheers!


    ———-
    Zach Russell
    President, ProTech Internet Group

    May 15, 2014 at 9:35 am #105319
    David Chu
    Participant

    Beauty! Now you know something that even hardcore geeks might not know! 🙂


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

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

© 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