Title: Conditional Menu Display
Last modified: December 10, 2023

---

# Conditional Menu Display

 *  Resolved [gamicord](https://wordpress.org/support/users/gamicord/)
 * (@gamicord)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conditional-menu-display-2/)
 * On my Menu, I have Login and Logout Menu items.
 * The Login link is an Elementor created Page.
 * While the Logout is an **endpoint** supplied by BuddyPress.
 * I have enabled **CSS Classes** in my Menu through **Screen options**.
 * So the **Login** link has a **CSS Class** of [ **buddyx-elementor-login** ] while
   the **Logout** link has a **CSS Class** of [ **bp-menu bp-logout-nav** ]
 * If people Login, I want the Login on the Menu to be hidden– because they are 
   already logged in.
 * And if they Logout, I want the Logout on the Menu to be hidden– because they 
   are already logged out.
 * Which **PHP Code Snippets** or **CSS** can help me achieve this?
 * Regards.

Viewing 1 replies (of 1 total)

 *  Moderator [Support Moderator](https://wordpress.org/support/users/moderator/)
 * (@moderator)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conditional-menu-display-2/#post-17265624)
 * [@gamicord](https://wordpress.org/support/users/gamicord/) For the fourth time,
   please do not post duplicate threads here: [https://wordpress.org/support/topic/hide-one-or-more-nav-menu-item-from-logged-out-user/](https://wordpress.org/support/topic/hide-one-or-more-nav-menu-item-from-logged-out-user/)
 * They clutter things up and are disrespectful to the people offering their free
   time to help you.
 * If this behavior continues, further restrictions may be placed on your account
   here.

Viewing 1 replies (of 1 total)

The topic ‘Conditional Menu Display’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 1 participant
 * Last reply from: [Support Moderator](https://wordpress.org/support/users/moderator/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/conditional-menu-display-2/#post-17265624)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
