Notifications
Clear all

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

3 Posts
2 Users
1 Reactions
118 Views
Posts: 8
Topic starter
(@furkangunes04)
Active Member
Joined: 2 months 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: 1302
(@tutrix)
Noble Member
Joined: 4 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 months ago

Thank you, worked!

Reply