• 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

Modern Portfolio Primary navigation vs custom 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 › Modern Portfolio Primary navigation vs custom menu

This topic is: not resolved

Tagged: modern portfolio, primary nav

  • This topic has 5 replies, 3 voices, and was last updated 10 years, 1 month ago by chikamiku.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 20, 2013 at 10:25 am #21679
    chikamiku
    Participant

    Displaying custom-menu in the modern protfolio is a fairly straightforward job. However, the given tutorial does NOT explain clearly how and where to enter  primary navigation and by using which widget. That is pretty confusing.

    To me, the custom-menu is new menu which is shown as About Portfolio, services, Blog,  and content.  However, the primary navigation is the menu where the demo theme is showing on contact page. This nav will be visible only if one clicks on the contact page button on the custom-menu link. Does anyone know how to achieve that?

    Thanks and regards,

     

     

    February 20, 2013 at 12:17 pm #21712
    charriott4
    Member

    Place a custom menu widget in the header right area.


    Web Designs By Chrissy | Twitter @designbychrissy

    Follow Me On Facebook

    February 20, 2013 at 7:31 pm #21849
    chikamiku
    Participant

    Chrissy,

     

    Thanks.  You are right.  Tjis is also mentioned in the theme tutorial.  However, I am not sure about the primary navigation. Where should it be placed?

     

    Any idea on this?

     

    Thanks

    February 20, 2013 at 8:20 pm #21857
    Sridhar Katakam
    Participant

    At Appearance -> Menus, select the custom menu that you would like to appear on a specific Page in 'Primary Navigation Menu' location.

    Method 1

    Add the following at the end of child theme's functions.php:


    /** display primary menu only on chosen page **/
    add_action('template_redirect', 'child_conditional_actions');
    function child_conditional_actions() {
    if ( !is_page( 146 ) )
    remove_action('genesis_after_header', 'genesis_do_nav');
    }

    change 146 to ID of Page on which you would like the Primary nav menu to appear.

    Source: http://victorfont.com/conditional-secondary-menus-genesis-themes/

    Method 2

    Add the following at the end of child theme's style.css (WP dashboard -> Appearance -> Editor):

    #nav {
    display: none;
    }

    .page-id-146 #nav {
    display: block;
    }

    change 146 to ID of Page on which you would like the Primary nav menu to appear.


    Genesis Tutorials | Follow me on Twitter

    February 20, 2013 at 8:21 pm #21859
    charriott4
    Member

    I would suggest either before or after the top Gray area, but I am not sure if this theme has support for it or styling? You may need to add it or add code to reposition it


    Web Designs By Chrissy | Twitter @designbychrissy

    Follow Me On Facebook

    February 21, 2013 at 10:53 am #21992
    chikamiku
    Participant

    Thank you so much for the great support. Now I understand the issue full well and will handle it as you suggested.

     

    Thanks and regards

  • 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

© 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