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
- Hide prices and checkout functionality in woocommerce
- Function to Set Product type in Woocommerce [closed]
- Updating WooCommerce variable product stock issue
- Styles and Scripts, Selectively enqueue across entire site
- How to make a plugin auto-add item to nav menu
- How do I register a stylesheet inside a WordPress widget?
- Override core woocommerce class
- WooCommerce – Where is functions.php?
- Woocommerce Shipping module available only for type of products [closed]
- WooCommerce – Adding Custom Order Without No Product [closed]
- Manually add order item with fixed product_id in WooCommerce
- ‘Customize’ button in admin bar for CSS
- Set the active Navigation Menu from a plugin
- WooCommerce shop page orderby [closed]
- WooCommerce Custom Product to checkout
- Reduce Drop down Menu Width in WordPress
- CSS from textarea in options page to frontend what to do
- custom changes removed after plugin update
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- Easiest way to add dropdown to a page
- Trouble with plugin styles in admin area of WordPress
- How to modify WCMP Rest API response?
- Woocommerce dependent plugin
- Merging Two menus in the backend into one menu
- Removing included CSS file that doesn’t exist
- CampaignMonitor for WooCommerce – Move subscribe button [closed]
- How to create an input field, and base the output on spreadsheet data? [closed]
- Pre booking doesn’t work with custom bootstrap modul in woocommerce [closed]
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Custom Pages for Woocommerce Product-Category Pages
- Woocommerce Minimum Price for a Composite Product to add in cart
- Is there a way to get plugins and themes not built for multisite to work on a network subsite?
- How to get the particular product quantity in orders in Woocommerce [closed]
- Remove Pagination for Product Category Pages WooCommerce
- Custom template for all woo commerce categories
- Is it possible to instantiate a new WC_Cart?
- Sell access to form [closed]
- Need to revert to an older version of wordpress
- I want to filter my products with attributes [closed]
- 2 wordpress site same database
- Add background image/layout for single page?
- Automatic recurring payment using YITH subscription and Dokan Stripe
- apply_filters(woocommerce_get_item_data, …) Causing errors when adding to cart
- Change Dashboard URL from wp-admin to wp-admin/index.php
- How To Use do_shortcode with WooCommerce One Page Checkout
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- Hide fields in woocommerce settings
- woocommerce: Customize email with item total count
- Save order without sending the invoice / order details woocommerce [closed]
- Optimise wordpress database using SQL after deleting registered images from Media Folder
- is there a way to display product gallery images via cdn
- show wc_add notices on particular page in woo commerce custom plugin development
- Make modification of add_to_cart button specific to single page
- How to get the checkout form data from checkout page when place-order button is clicked
- Product Page loads terribly slow when product gallery images are added
- How to make WooCommerce multiple filter with custom meta fields
- One WooCommerce Store to multi distributor sites
- WordPress site hamburger menu toggle not working
- Custom form data not displaying in cart page?
- best way to handle subscriptions with a licence?
- Is there a request for products plugin for WooCommerce
- How to change the width of certain paragraph or header blocks?
- woocommerce with external ftp site
- Only return taxonomies that are linked to a category & product
- WordPress eMails not working
- Add WooCommerce vendor slug to auto-generated SKU
- Custom plugin issue – Notice: Trying to get property of non-object in
- jquery plugin won’t fire when hamburger class element clicked
- fetch price from different table woocommerce
- Cannot save a custom meta field in quick edit
- how to make settings page for woocommerce plugin?
- redirect to a custom page
- Change value of Points earned in product data
- Problem with conditional woocommerce custom checkout field
- Admin page and admin menu. Permissions plugin
- How woo-commerce store Product Data value in DB?
- Not getting result using ajax on wordpress
- Power Menus plugin destroys menu after adding new item
- Which WordPress version to use for improved plugin compatibility? [closed]
- Display alt text as tool tip on page
- Turning Existing Eccommerce Site into Multi-SIte
- Translate text for empty product
- How to make horizontal scrolling menu [closed]
- How to modify submit button on GravityForms
- Create Custom Coupon Type
- Add different sizes packaging boxes to orders plugin
- How does one add numbers to an admin menu?
- Adding fontAwesome to Primary Menu returns after saving the menu
- Is there a membership plugin which offers the ability to hide content based on css rules?
- How to add an active state class to my info box
- Prevent primary navigational menu from expanding during page load (WordPress / Astra Theme)
- A multi-section WordPress store [closed]