• Resolved Michele

    (@micheleking)


    When a user is logged in and adds items to the cart the WPmenucart button appears in the main navigation, as desired.

    However, when the user logs out the menu still appears in the navigation.

    How can I hide this button for all logged out users?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    You can do this with CSS:

    
    body:not(.logged-in) .wpmenucartli {
        display: none !important;
    }
    

    Most themes have a section where you can enter custom styles/CSS or if you have a child theme you can simply add this to the style.css.

    Let us know if you need more help with this!

    Ewout

    Thread Starter Michele

    (@micheleking)

    Thanks, that worked perfectly and easily!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide button for logged out users’ is closed to new replies.