Top Bar and Fixed Header
-
The
.spu-box.spu-position-top-bar
element looks great fixed except when a fixed header exists. It will overlay and cover the logo, navigation, etc. Or, in the event thez-index
on the header is higher, you will not see the top bar pop-up at all. How would you recommend targeting the header or pop-up top bar banner to “push down” the fixed header when a top bar element is present?For example, if my
<header>
wastop:0px;
I could move it down if a user is logged in to make room for the WP admin bar likebody.logged-in header { top: 34px; }
Is there something similar, whether via JS or CSS to target the header knowing that a top bar is present?
Thanks!
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.