I do not believe a plugin would be needed for this.
You could add a class to the menu item (enable the class field under Screen Options when you are editing the menu item). Also be sure that you have the body_class()
function applied to your body tag. Then you can do:
.your-menu-item-class {
display: none;
}
.logged-in .your-menu-item-class {
display: block;
}
Related Posts:
- automatically adding submenu items
- Logout hyperlink within a sub-menu
- How to add nav menu items to a specific position within a menu
- Custom Nav Walker sub-menu
- Replace a menu with widget or a custom template file programmatically
- Filter nav menu items HTML tags and wrap inner text with span
- retrieves menu and converts it to a readable array
- How to add custom li item to wordpress menu
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- why is this function firing on all child menu items as well?
- How to hightlight all ancestor menu items of a child page NOT displayed in menu
- search form leads to 404
- Unable to add extra elements to the main navi (wp_nav_menu_items)
- How to display an image before title text in menu items
- Modify sub_menu function to show pages below a specifically set page
- Function Reference for custom link in Admin Menu Management Page
- How do I get my nav menu to show sub pages?
- remove empty paragraphs from the_content?
- How to add a data attribute to a WordPress menu item
- Issues with title-tag and document_title_parts
- Remove Actions/Filters added via Anonymous Functions
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- Get the ID of the page a menu item links to?
- Add container to nav_menu sub menu
- Get menu object from theme_location
- Set JPEG compression for specific custom image sizes
- Add custom menu item using wp_nav_menu_items filter
- Define custom Page Template without its own .php file
- Add class to menu items of one specific menu (nav_menu_css_class)
- Remove a menu item created by a plugin
- How to influence the information displayed on widget inside wp-admin
- Remove Container Element From wp_nav_menu() Markup
- Removing default image size list in Media Box
- Using wp_get_nav_menu_items() to list children of children pages
- How to restrict actions and filters “properly” by conditions
- Filter the query ONLY for the search results page
- How to target specific wp_nav_menu in function?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Using add_filter() in Widgets
- Customize WordPress Media Manager – Media Window
- How to reduce original image quality on upload?
- Is it possible to use a forgot password url filter?
- Breadcrumbs showing Parent and Child Pages
- syntax for remove_filter in parent theme with class
- Add body class of category parent
- Custom menus displaying all pages instead of set pages
- Return only top-level navigation items from a menu using wp_get_nav_menu_items
- Determine which theme location a wp_get_nav_menu_items is for
- Wrap gutenberg block ‘div’ in other elements/extra HTML
- Convert hyphen to underscore in permalinks
- Override parent theme function that is not hooked or in the functions.php file
- Remove Page Title from Static Frontpage
- How to activate “Description” metabox for menu item programmatically?
- Dynamically add sub-categories to any category in the menu
- Programmatically Add Font-Awesome Icons to Category Widget
- Remove bulk actions based on user role or capabilities
- Default or Preset Content for Custom Post Types
- Breadcrumb how i can display page title with parent > child title with permalink ? any Idea
- Two different menus for two different locations?
- Override a class function to include a custom template
- How to override filter in child theme?
- Removing title from page
- Hide some items from Screen options in dashboard for products
- How to change a certain text or term of WordPress into a custom into the whole site?
- Unregister Nav Menu with fallback?
- Adding body class when post contains a specific shortcode
- How to programmatically set a menu to be the Primary Menu?
- Editing or filtering the output of the Genesis navigation
- Replace Archive Widget Link Text
- Exclude Empty Child Categories in Menu
- How to make unique add_filter to the_content of specific page template files – so each template gets its own addition
- Best way to programatically add “rel” attributes to page and post images
- add_filter priority problem
- Limit filter upgrader_post_install to a single plugin
- How to update feed only 2-3 times a week (for Feedburner email)?
- Manipulate Output of wp_list_something: select menu instead of li’s
- Clean-up script tags
- How to use IF Statement in WordPress?
- Make menu structure match page heirarchy on page parent change
- Gravity Forms field entries into wp_query loop [closed]
- Post Pagination Showing Same Posts Every Page
- Show excerpt for only first post in query
- Remove function or filter
- modify a function filter
- Super simple shortcode not working
- How would go about if I just want a temporary function?
- Generating rel=prev and rel=next only on wordpress categories
- How to make applyFilters function return false via functions.php
- How to filter out shortcode when displaying the_excerpt() in the loop?
- Is there a way to add a class to non current menu item?
- Accepted arguments value in hook functions
- Get current page_id before loop, in functions.php
- Menu fallback “menu_class” rendering a “div” instead of a “ul”
- CSS for menu item added via functions.php
- How To Remove Duplicate Menu Locations
- Which action hook to use for function?
- Adding multiple taxonomy filters to functions.php
- str_replace function in theme
- Run a filter when a walker runs
- Where do I add html code to the menu div?