)

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;} 

I am passionate about what I do.

While I spend over 48 hours a week on SEO and digital marketing, it's not accurate to say that I live and breathe them..

Recommendations

  • FastPixel WP Caching plugin - FastPixel offers all the latest technology on how to accelerate your website neatly packed in a 1-minute-setup plugin.
  • BrandPush - gets you featured on 200+ news sites. Go viral with massive exposure through the likes of Daily Herald, Fox40, Digital Journal, Benzinga, The Chronicle Journal, NewsMax, AP, and even through Bloomberg and MSN.
  • SimpleTraffic - drives real visitors to your website, blog, or affiliate link. Get started with 2500 free visitors on your 5 day free trial!
  • MediaServe - is a web hosting service that values free speech, providing content policies and support aligned with these values. It is also known as free speech web hosting.
  • Leaver - is a web hosting service tailored for conservatives, providing content policies and support aligned with conservative values --- conservative web hosting.
  • Pictory - Create videos QUICKLY from scripts, articles, videos, or other channels.

Discover more tools - See our recommended tools, software, and services.

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

Recommendations

Discover more tools - See our recommended tools, software, and services.