WordPress.org

Ready to get started?Download WordPress

Forums

Admin Bar covering top part of page (9 posts)

  1. pszeinert
    Member
    Posted 3 years ago #

    I love the new admin bar, but what needs to be done to make sure it does not cover up the top 28px of a page?

    I confirmed that this is the case in Chrome, Firefox and IE with a custom theme and TwentyTen. The custom theme we are developing has a top menu bar which is rendered unaccessible by the new admin bar.

  2. demetris
    Member
    Posted 3 years ago #

    WordPress adds a class named admin-bar to the body element when the admin bar is displayed (and only then). Have you tried playing with that?

  3. pszeinert
    Member
    Posted 3 years ago #

    I would be happy to change the css on my end, but if it is going to be enabled by default, I think it should not get in the way of the average user. Even a button (javascript more than likely) that would allow me to collapse it to the left, right or up would be a great help.

  4. It works fine with my site, both using twenty ten and other themes.

    Are you sure you upgraded all the files? You may need to delete WP-admin and reupload it.

  5. pszeinert
    Member
    Posted 3 years ago #

    I deleted my wp-admin folder just now and am uploading the latest nightly build and will see if that works shortly.

    While that is going on, are you sure you aren't experiencing the same issue? When I checked TwentyTen, I thought it was working too, but upon further inspection it turns out it was in fact overlapping the top. There is no upper menu on the default TT theme and it has a 20px top-margin, which means the admin bar only overlapped by 8px and was barely noticeable.

    Upon further inspection, I don't see any reason why it wouldn't overlap in every instance, since it is the last item loaded and its CSS defines it as { position: fixed; width:100%; top: 0; } (defined in #wpadminbar). There is no part of the code that I have seen that would bump the entire wrapper down 28px.

    It may not appear to be a major inconvenience at first, but if anyone has an upper menu, ticker, or other important bit of info within 0-28px from the top, they would have to completely log-off in order to see or access it.

  6. pszeinert
    Member
    Posted 3 years ago #

    The picture linked below show what a logged in user sees and what a logged out visitor sees on the default TwentyTen theme.

    http://i55.tinypic.com/2cztueu.jpg

  7. I did double check and you are correct. Huh, that's not right. Can you raise a trac ticket? I'm having trac vs iPad issues right now

  8. pszeinert
    Member
    Posted 3 years ago #

    Added to this ticket:

    Admin Bar Problem
    http://core.trac.wordpress.org/ticket/15592

    Thanks for verifying the issue exists.

  9. demetris
    Member
    Posted 3 years ago #

    I would be happy to change the css on my end, but if it is going to be enabled by default, I think it should not get in the way of the average user. Even a button (javascript more than likely) that would allow me to collapse it to the left, right or up would be a great help.

    pszeinert, you are right. I was before the revision that changed this (r16600) and I was not seeing what you described.

Topic Closed

This topic has been closed to new replies.

About this Topic