• 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

Problem with menu reposition

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 › Problem with menu reposition

This topic is: resolved

Tagged: menu

  • This topic has 6 replies, 2 voices, and was last updated 11 years, 3 months ago by Tomas.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • August 20, 2014 at 4:30 am #119964
    Tomas
    Participant

    I want to replace primary menu before header. I used code:

    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_before_header', 'genesis_do_nav' );

    But in result of that I have primary menu twice: before and after too.

    Code is placed into function.php using Code Snippets plugin.
    WP 3.9.2, Genesis 2.1.2, Genesis Sample

    Thanks for any advice.

    August 21, 2014 at 8:23 am #120208
    David Chu
    Participant

    Hi,
    Good question. Try placing the 2nd line before the 1st.

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    August 25, 2014 at 1:53 am #120868
    Tomas
    Participant

    Thanks for advice - but it doesn't work.
    It seams problem will be in 'Code Snippets' plugin.
    Everything is ok when i placed code directly into function.php

    Thanks

    August 25, 2014 at 7:18 am #120888
    David Chu
    Participant

    That's good to know!

    I have a last idea for you. The context of a command sometimes is important. For instance, when I put a hook into a template file instead of functions.php, sometimes I find that I need to use a priority, and in this example I'm using 10 as the priority. So you could experiment with various numbers for that.

    remove_action( ‘genesis_after_header’, ‘genesis_do_nav’, 10 );

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    August 26, 2014 at 1:41 am #121072
    Tomas
    Participant

    Good idea! Unfortunately even it doesn't work in using that plugin.
    I will report this bug to author plugin.
    Thanks David

    August 26, 2014 at 7:55 am #121108
    David Chu
    Participant

    You're welcome. In any case, glad you're on top of what's going on.

    I actually use my own plugin for all my non-Genesis WordPress fancy functions - then they are portable to other themes. I tend to leave my Genesis functions in functions.php, because if they quit using a Genesis theme, the functions would stop working anyway. There are many differing opinions on all this, but that's how I do it.

    Best, Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    August 27, 2014 at 1:25 am #121255
    Tomas
    Participant

    Dave thanks for inspiration.

    Anyway - here is solution of that problem (thanks to excellent support of plugin author).

    http://wordpress.org/support/topic/problem-in-genesis-framework?replies=3

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Problem with menu reposition’ is closed to new 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