Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #307696
    liberating-maestry
    Participant

    Hej hej,

    is there a possibility (e.g. a php-snippet) to include a defined menu as a secondary menu only on certain pages.

    Let’s say I have a page ‘Stuff’ and when it is displayed the secondary menu right below the main menu gets displayed for only that page.

    Cheers,

    Daniel

    #307742
    tikaram
    Keymaster

    @liberating-maestry : First you will need to hide the secondary menu for the whole site with the help of custom css and display the menu within stuff page with the help of css
    I am providing you the example code to display secondary menu only on specified page.

    Note:  You will need to change the .page-id-stuff with the exact page-id of the desired page where you want to display the secondary menu.

    .nav-secondary {
        display: none;
    }
    .page-id-stuff .nav-secondary {
       display:block;
    }
    
    #307755
    liberating-maestry
    Participant

    @tikaram Works like a charm! Thank you so much for your quick reply. Awesome!

    #307804
    tikaram
    Keymaster

    @liberating-maestry : Nice to hear back from you and glad that my support worked on your website. If it’s not too much trouble, I have a quick request: could you please leave an honest review? https://wordpress.org/support/theme/clean-journal/reviews/#new-post. Your review will help others know what to expect when they’re looking for the support I offer. Even a sentence or two would be hugely appreciated. Thanks, and if there’s anything else at all that I can do to help, don’t hesitate to let me know. Have a good day! 🙂

    Regards,
    Tikaram

    #307845
    liberating-maestry
    Participant

    Sure – done 🙂

    #307847
    tikaram
    Keymaster

    @liberating-maestry : Thanks a lot for your great review. Let me know if you have any other issues.

     

    Regards,
    Tikaram

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Option to show Secondary Menu only on specific pages’ is closed to new replies.