Can’t you change CSS rules?
.hide-item-not-login{
display: block !important;
}
.logged-in .hide-item-not-login{
display: none !important;
}
EDIT
To add login/logout menu item, you will need to add one more class to logout menu item. Let’s say you added class .logout-link to logout menu item.
Then you can add css like this.
.hide-item-not-login{
display: block !important;
}
.logged-in .hide-item-not-login{
display: none !important;
}
.logout-link{
display: none !important;
}
.logged-in .logout-link{
display: block !important;
}
Related Posts:
- Redirect to another page using contact form 7? [closed]
- Add CSS class to add-to-cart button, Woocommerce [closed]
- Delete mobile menu button [closed]
- How to use my menu PHP code as sidebar?
- Button and Countdown overlapping mobile menu
- How to activate/deactivate menu tab and keep the same id?
- Trying to disable all notifications except for one on woocommerce checkout page with css [closed]
- Woocommerce Product Page Collapsible Box Using CSS
- WordPress Multi-Step Product Search
- Is it possible to instantiate a new WC_Cart?
- Woocommerce Free shipping method [closed]
- how get curent URL slug from archive page [closed]
- Adding a responsive grid onto a page (without using a Bootstrap theme) [closed]
- dynamically create callback functions inside a for loop
- Sell access to form [closed]
- get_term_meta returns false in widget
- Changing location of “About me” section
- change or add css to theme from plugin
- Add key and value to an array in another file
- Need to revert to an older version of wordpress
- Custom search search does not work?
- WordPress custom plugin that uses woocommerce enabled payment gateway for payment [closed]
- Disable variations on woo commerce if out of stock
- How to change layout of shop page in wordpress? [closed]
- I want to filter my products with attributes [closed]
- Add logo to admin menu in my plugin
- WordPress Custom Menu Admin helper plugin
- I would like to remove date display on photo preview
- How to add category and subcategory in WordPress custom code?
- Customizing $product->get_title() function
- At a Loss on over Page Peel Plugin Customization [closed]
- How can I add a fixed vertical menu to my site? [closed]
- Is wp_deregister_script the best way to deal with unneeded plugins in a page?
- 2 wordpress site same database
- Custom CSS not being added by plugin
- Hook on creating a menu entry?
- Blocking Plugin Css to load custom in template directory
- Block wordpress style for my plugin admin page
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- Not able to override plugin’s default css rules
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- insert an html tag using php plugin
- Add background image/layout for single page?
- Best practice when modifying plugins CSS [duplicate]
- Make 2 different WooCommerce checkout pages?
- How to theme code blocks formatted by the prettify.js embedded with WP-Markdown?
- Dropdown menu on click change
- navigation among single posts
- How do i specify a url to which to redirect the user after he logs out from facebook?
- CSS/JS files in WordPress
- How do I override all stylesheets and scripts without a plugin
- I cannot include a file in my plugin settings page
- How do I work with the SlideDeck plug-in?
- Why is adoptStyles-css stylesheet link added to every page?
- Theme deactived html and css styling on home page posts
- How to return a specific attribute
- uncaught TypeError: Cannot read properties of null (reading ‘classList’) custom plugin
- How do I minify a plugins CSS/JS code?
- Automatic recurring payment using YITH subscription and Dokan Stripe
- Custom Plugin scripts from admin working in frontend
- Woocommerce checkout page broken when set as a checkout in woocommerce settings [closed]
- How to get custom minimum price in Woocommerce
- apply_filters(woocommerce_get_item_data, …) Causing errors when adding to cart
- Woocommerce Export and import Orders
- Themes conflicts and overrides my WordPress Support widget Plugin styles
- Edit all $wp_scripts at once to $in_footer = false
- Edit all $wp_scripts at once to $in_footer = false
- WordPress Phone Field Check (use numbers, spaces and pluses)
- Unable to locate inline CSS causing parts of page to be blank
- Can export gallery but can’t import it Wp all import
- Restrict posts to customers with complete WooCommerce orders only
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Get product categories and add them to a custom taxonomy
- How to make WooCommerce payment method field optional?
- How to Get Category Name When Export Products
- How To Use do_shortcode with WooCommerce One Page Checkout
- Want to create custom design of progress indicator in wpforms
- Cannot read properties of undefined (reading ‘firstChild’) using photoswipe in product page
- Strange admin-ajax / CSS / $_SESSION issue
- woocommerce remove coupon link does not work
- Two plugins using the same CSS id
- WordPress – Ultimate Auction for WooCommerce
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- Load CSS before Theme CSS
- Plugins to generate reflinks in WordPress
- Working on a product group in wordpress, where user choose how many children, wife and husband
- product available stock day by day
- Sold out Label for variable products which are partially sold out
- Slideout submenu in mobile
- wp_query ‘s’ parameter does not work with WC_AJAX
- Grouping imported products and showing variations based on selected product
- Add a Custom email notification to WC actions
- Hide fields in woocommerce settings
- woocommerce – adding wrapper around custom made woocommerce form fields
- How to add custom plugin data to the cart in woocommerce using custom button on product page?
- How to hide a woocommerce setting tab from admin & shop manager?
- WoCommerce Cart is not showing pricing
- Add Plugin broken after removing Booster for Woocommerce
- Create category for each user