• 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

Change header right to primary menu

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 › Change header right to primary menu

This topic is: not resolved

Tagged: Header Right Menu, parallax-pro, primary menu

  • This topic has 2 replies, 2 voices, and was last updated 7 years, 2 months ago by Genesis Developer.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 16, 2016 at 2:58 pm #181591
    brookelustig
    Member

    Hello everyone, I'm using the parallax pro child theme and I can't seem to change the header right menu to the primary menu. When I put in a menu on the primary it does not show on the home page and behaves like the old prim menu (below header) instead of showing in the header right section.

    I have the following code inserted, what I'm a missing?

    //* Remove the header right widget area
    unregister_sidebar( 'header-right' );
    
    //* Move primary navigation to header right
    remove_action( 'genesis_before_content_sidebar_wrap','genesis_do_nav' ) ;
    add_action( 'genesis_header_right','genesis_do_nav' );
    March 17, 2016 at 5:57 am #181691
    Genesis Developer
    Member

    Try this snippet

    //* Unregister the header right widget area
    unregister_sidebar( 'header-right' );
    
    //* Reposition the primary navigation menu
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_header', 'genesis_do_nav', 12 );
    
    //* Remove output of primary navigation right extras
    remove_filter( 'genesis_nav_items', 'genesis_nav_right', 10, 2 );
    remove_filter( 'wp_nav_menu_items', 'genesis_nav_right', 10, 2 );

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    March 17, 2016 at 5:59 am #181692
    Genesis Developer
    Member

    Try this snippet
    ==================================

    //* Unregister the header right widget area
    unregister_sidebar( 'header-right' );
    
    //* Reposition the primary navigation menu
    remove_action( 'genesis_after_header', 'genesis_do_nav' );
    add_action( 'genesis_header', 'genesis_do_nav', 12 );
    
    //* Remove output of primary navigation right extras
    remove_filter( 'genesis_nav_items', 'genesis_nav_right', 10, 2 );
    remove_filter( 'wp_nav_menu_items', 'genesis_nav_right', 10, 2 );

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

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