Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!

Merry Christmas and Happy Holidays! 🎄

[Solved] How to hide a div tag after logging in

3 Posts
2 Users
1 Reactions
676 Views
Posts: 8
Topic starter
(@furkangunes04)
Active Member
Joined: 2 years ago

I created Sign Up & Log In buttons within a div tag on my website. I want to hide the div tag containing these buttons if the user is logged in. How can I do this? What CSS rule should I use?


2 Replies
Tutrix
Posts: 1521
(@tutrix)
Noble Member
Joined: 6 years ago

Hi @furkangunes04 

Posted by: @furkangunes04

What CSS rule should I use?

.logged-in xxxxxxxxxx {
 display: none !important;
}

replace the xxxxxxxxxx with the id / class of your div


Reply
Posts: 8
Topic starter
(@furkangunes04)
Active Member
Joined: 2 years ago

Thank you, worked!


Reply