)

How to Hide a WP Element in CSS for Logged-in Users Only

Last Updated: 4 years ago by BrodNeil

You can use .logged-in together with an element or class or ID to hide it from logged-in users.

An example would be something like this:

/* Hide WooCommerce customer_details for logged-in users * /
.logged-in #customer_details {display: none;} 

Website | + posts

I am passionate about what I do.

I spend over 48 hours a week on SEO and digital marketing.

"And whatsoever you do, do it heartily, for YHWH, and not for men." (Colossians 23:3)