[Resolved] Hide/Show Navigation and Header

Home Forums Support [Resolved] Hide/Show Navigation and Header

Home Forums Support Hide/Show Navigation and Header

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #160087
    Don

    Hi Tom,

    Just bought all add-ons, but I’d like to ask how to:

    1. Show Primary Navigation only for logged-in users (Hidden for guest/logged-out users).
    2. Hide Header for Logged-in users (Show only for guest/logged-out users).

    I couldn’t find the setting in customizer, also not found in the forum/knowledgebase. Maybe you could help by adding code in theme function.

    Thanks
    Don

    #160096
    Tom
    Lead Developer
    Lead Developer

    Hi Don.

    You can do this with some CSS.

    .main-navigation,
    .logged-in .site-header {
        display: none;
    }
    
    .logged-in .main-navigation {
        display: block;
    }

    Adding CSS: https://generatepress.com/knowledgebase/adding-css/

    Let me know if you need more info 🙂

    #160099
    Don

    It works perfectly. Awesome !

    Yes, I have the 3rd question. I’d like to disable responsive navigation on mobile. I want it to have the same look with desktop.

    Thanks
    Don

    #160190
    Tom
    Lead Developer
    Lead Developer

    Hi Don,

    You can make it so your website looks the same on mobile using this plugin: https://wordpress.org/plugins/generate-disable-mobile/

    #160213
    Don

    Hi Tom, I’ve tried that plugin but it disable for whole site. I only need to disable responsive design for the menu on primary navigation. Sorry, maybe I wasn’t clear enough before.

    Thanks
    Don

    #160325
    Tom
    Lead Developer
    Lead Developer
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.