• In this moment my admin bar covers part of the header so I cant realise how much padding or which other settings must I add, there is a way to show the admin bar on top of the header? css or php…

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can use the body.admin-bar selector to add extra margin/padding to the body element – this class is only added when the admin bar is shown.

    Thread Starter sacconi

    (@sacconi)

    I tryed with ?

    body.admin-bar { padding-bottom: 50px
     }

    and

    body.admin-bar { margin-bottom: 50px
     }

    but it doesnt work

    Moderator bcworkz

    (@bcworkz)

    You’re not targeting the admin bar with body.admin-bar, you’re targeting your page’s content. You want to move the entire content down when there’s an admin bar, so you want margin-top, not bottom.

    body.admin-bar {
        margin-top: 32px !important;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Putting the admin bar on top the header’ is closed to new replies.