Site logo

Archived topic

Logged in /logged out css problem cart icon

3 replies · Started by johnaps on September 15, 2020

Viewing posts 1–4 of 4

Hello!
When you login to my site the number of cart items & cart icon is out of position for media under 768px.
https://imgur.com/a/pKCRMXb
But when i am unlogged everything is correct...
https://imgur.com/a/BlBcEsH
Is there a way to apply css rules only for logged in users to fix this?

Hi there,

WordPress adds the logged-in class to the <body> tag.
So you can use that selector at the front of your CSS to style for logged in users only.

thank you very much!!

You're welcome

This archived topic is closed to new replies.