• 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 Header Right Menu Only on Homepage

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 Header Right Menu Only on Homepage

This topic is: not resolved

Tagged: menu, modern portfolio, navigation menu

  • This topic has 7 replies, 3 voices, and was last updated 10 years, 1 month ago by eluviis.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • March 25, 2015 at 10:07 pm #145702
    eluviis
    Member

    The anchor jump-style on the main menu on Modern Portfolio is pretty cool, but I feel it shouldn't be anywhere else but the homepage. On all other pages, the only menu should be that the Primary WordPress Navigation menu.

    How do I do it so that the jump-style menu ONLY shows on the homepage and the Primary WordPress Navigation menu shows everywhere BUT the homepage?

    Thanks

    March 25, 2015 at 11:42 pm #145706
    eluviis
    Member

    Ok, so poking about I discovered the Home-Right widget code is on "front-page.php" and it looks like this:

    add_action( 'wp_enqueue_scripts', 'mpp_enqueue_scripts' );
    /**
     * Enqueue Scripts
     */
    function mpp_enqueue_scripts() {
    
    	if ( is_active_sidebar( 'home-about' ) || is_active_sidebar( 'home-portfolio' ) || is_active_sidebar( 'home-services' ) || is_active_sidebar( 'home-blog' ) ) {
    		wp_enqueue_script( 'scrollTo', get_stylesheet_directory_uri() . '/js/jquery.scrollTo.min.js', array( 'jquery' ), '1.4.5-beta', true );
    		wp_enqueue_script( 'localScroll', get_stylesheet_directory_uri() . '/js/jquery.localScroll.min.js', array( 'scrollTo' ), '1.2.8b', true );
    		wp_enqueue_script( 'scroll', get_stylesheet_directory_uri() . '/js/scroll.js', array( 'localScroll' ), '', true );
    	}
    }
    
    add_action( 'genesis_meta', 'mpp_home_genesis_meta' );
    /**
     * Add widget support for homepage. If no widgets active, display the default loop.
     *
     */
    function mpp_home_genesis_meta() {
    
    	if ( is_active_sidebar( 'home-about' ) || is_active_sidebar( 'home-portfolio' ) || is_active_sidebar( 'home-services' ) || is_active_sidebar( 'home-blog' ) ) {
    
    		// Force content-sidebar layout setting
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    
    		// Add mpp-home body class
    		add_filter( 'body_class', 'mpp_body_class' );
    
    		// Remove the navigation menus
    		remove_action( 'genesis_after_header', 'genesis_do_nav' );
    		remove_action( 'genesis_after_header', 'genesis_do_subnav' );
    		
    		// Remove breadcrumbs
    		remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
    
    		// Remove the default Genesis loop
    		remove_action( 'genesis_loop', 'genesis_do_loop' );
    
    		// Add homepage widgets
    		add_action( 'genesis_loop', 'mpp_homepage_widgets' );
    
    	}
    
    }

    Now, hmmm..... How do I make it so that it only show on the homepage and not anywhere else?

    April 2, 2015 at 11:13 am #146470
    eluviis
    Member

    Anybody?

    April 3, 2015 at 6:18 pm #146608
    ᴅᴀᴠɪᴅ
    Member

    The simplest way is with this plugin. You can create one menu for the home page, then a second menu to appear on every other page.


    I love helping creative entrepreneurs build epic things with WP & Genesis.

    Follow on Twitter

    April 7, 2015 at 9:30 pm #147009
    eluviis
    Member

    Unfortunately, the plugin doesn't seem to do what it's supposed to on Modern Portfolio Pro.

    This theme is tricky. That jump menu is cool, but there really is not really for it to be showing on any other page but the homepage. That's all I want to do and I can't seem to figure out how.

    April 7, 2015 at 9:35 pm #147011
    eluviis
    Member

    By the way... this is the site: http://andrewsaintandrew.com - I just want the header right menu (header right widget) to ONLY show on the homepage. That's all.

    April 7, 2015 at 11:52 pm #147020
    Genesis Developer
    Member

    You can try this . If you are not using JetPack plugin then you can use Widget Logic Plugin.


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

    May 16, 2015 at 10:38 pm #152465
    eluviis
    Member

    I ended up using the plugin - Easy Custom Sidebars and that did the trick. I was able to replace the header-right sidebar in every page but the homepage.

    Cheers

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

© 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