Modern Portfolio Primary Navigation

Community Forums Forums Design Tips and Tricks Modern Portfolio Primary Navigation

This topic is: not resolved

This topic contains 7 replies, has 2 voices, and was last updated by  anitac 2 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #30628

    rusticrick
    Participant
    Post count: 15

    Hi,

    I would like to set the primary and secondary navigation menus to appear on all pages, including the homepage.

    Can somebody help me out with the code to do this please?

    Thanks

    #30644

    anitac
    Moderator
    Post count: 2682

    The settings for Primary and Secondary are controlled under Genesis > Genesis Settings. You just need to activate them. Then create your menus under Appearance > Menus and set those up.


    Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
    Why Not Take The Challenge! – Help us answer some of the unanswered posts

    #30645

    rusticrick
    Participant
    Post count: 15

    I now have the primary menu showing on all pages, but it aligns vertically rather than horizontally. I am using genesis-nav-menu as the CSS class, the same as the custom header menu. Is this correct?

    My site is http://blackmirrors.co.uk/

    #30648

    rusticrick
    Participant
    Post count: 15

    anitac,

    thanks for your response. That is the way that I have set the primary menu up but it still aligns vertically.

    Do you know how they are set up in the demo? The notes say that locations for primary and secondary menus are not specified for the demo, but the primary menu shows on the blog page?

    #30651

    anitac
    Moderator
    Post count: 2682

    Maybe that theme doesn’t have that particular navigation built in. But here are the set up instructions – http://my.studiopress.com/setup/modern-portfolio-theme/. But if you want to import the demo content, you will need to Import the XML file that came with your theme.


    Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
    Why Not Take The Challenge! – Help us answer some of the unanswered posts

    #30652

    rusticrick
    Participant
    Post count: 15

    Thanks,

    I have been through the setup instructions and imported the demo content. The theme does have support for primary navigation, I have it activated but it doesn’t align correctly is all.

    The setup instruction say:

    The primary and Secondary navigation theme locations areas are not used in the demo.

    However, if you navigate to this page of the demo you can see the primary nav menu

    http://demo.studiopress.com/modern-portfolio/portfolio-4/

     

    #30656

    anitac
    Moderator
    Post count: 2682

    Andrea answered this here – http://www.studiopress.com/forums/topic/modern-portfolio-menu/.


    Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
    Why Not Take The Challenge! – Help us answer some of the unanswered posts

    #30664

    anitac
    Moderator
    Post count: 2682

    Open up Home.php and look for this:

    		// Remove the navigation menus
    		remove_action( 'genesis_after_header', 'genesis_do_nav' );
    		remove_action( 'genesis_after_header', 'genesis_do_subnav' );

    On the first line – change “remove” to add” which will add the Primary Navigation. If you want the secondary – change the second like from “remove” to add.

    You can then style them as you like.


    Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
    Why Not Take The Challenge! – Help us answer some of the unanswered posts

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.