Hide HTML Elements, Menu Links, and Other Details For Specific Criterion
Show or hide specific HTML elements based on user's access to a WooCommerce product.
Show or hide specific HTML elements based on user's logged-in or logged-out status.
To show or hide, add a CSS class to your element div or span.
As explained here, if Product ID is 123
Add this CSS class: visible_to_product_123
Add this CSS class: hidden_to_product_123
Add this CSS class: visible_to_logged_in OR hidden_to_logged_out
add this CSS class: visible_to_logged_out OR hidden_to_logged_in
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.