Customization Notes
Add the ‘hideifloggedout’ class to any element you wish to hide.
/* HIDE CONTENT WHEN LOGGED OUT */
body:not(.logged-in) .hideifloggedout {
display: none !important;
}
Learn why I switched to WPCodeBox for managing code snippets for myself and for my clients.
Snippet Type: CSS
Add the ‘hideifloggedout’ class to any element you wish to hide.
/* HIDE CONTENT WHEN LOGGED OUT */
body:not(.logged-in) .hideifloggedout {
display: none !important;
}
Join the WP Turned UP Community
This post may contain affiliate links in accordance with my affiliate policy.
Exclusive resources, discounts, and expert services to help you build an online business with WordPress.