This topic has 3 replies, 2 voices, and was last updated 5 years by Laura.

  • Author
  • #218784
     aekormishin
    Participant

    Hello,

    I wonder, if it is possible to hide certain pages of the primary menu bar from the unlogged users?

    Looking forward to hearing from you.

    Best regards,

    Alexander

    #218798
     Laura
    Moderator

    Hello, yes, you could do this with css, i can create the code for you if you share the exact menu items you want to hide.

    Or using this plugin https://wordpress.org/plugins/menu-items-visibility-control/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #218806
     aekormishin
    Participant

    Yes, I would like to hide “Stream”, “Members”, “Groups” and “Blog” from the unlogged users. If you could advice of the place where I should insert the CSS code, I would be grateful to you. Thanks. You have my website’s credentials.

    #218877
     Laura
    Moderator

    Hello, here it is, add to style.css of child theme.
    Note that if you change the menu items the code needs to be updated because it uses the menu item ID

    COPY CODE
    
    li#menu-item-13239 {
        display: none;
    }
    li#menu-item-13243 {
        display: none;
    }
    li#menu-item-13238 {
        display: none;
    }
    li#menu-item-13250 {
        display: none;
    }
    .logged-in li#menu-item-13239 {
        display: block !important;
    }
    .logged-in li#menu-item-13243 {
        display: block !important;
    }
    .logged-in li#menu-item-13238 {
        display: block !important;
    }
    .logged-in li#menu-item-13250 {
        display: block !important;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?