Skip to:
Content
Pages
Categories
Search
Top
Bottom

Make admin bar take its own space and stay static

  • @thegreyspot

    Member

    Hi!

    Im trying to make the admin bar take up its own space so that not all my content gets shiffted down. I would like it to create a small bar at the top with a black background. Also it would be nice if the bar did not moved as a scrolled. Is that possible?

Viewing 6 replies - 1 through 6 (of 6 total)
  • @r-a-y

    Keymaster

    Try this snippet in your theme’s stylesheet:
    #wp-admin-bar {position:absolute !important;}

    If you’re customizing the default BP theme, you’ll want to build a child theme so your changes will stay intact when you upgrade BP:
    https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/

    @thegreyspot

    Member

    Im afraid that snippet didnt work. I added to my main style.css file. Would you like to see the website? I would have to create an account. Not sure if that would help.
    BTW. Im using another them. Im using pixel 2.0
    Thanks so much!

    Mike

    @mercime

    Participant

    add top:0; to @r-a-y‘s snippet
    #wp-admin-bar {position:absolute !important; top: 0; }

    @thegreyspot

    Member

    That didn’t work for me either. Is there anything I can give/show you to help out?

    @thegreyspot

    Member

    If you get a chance could you please take a look at the issue here: honors.fgcu.edu did I put that snippet in correctly?

    Thanks!

    @lincme

    Member

    @thegreyspot; I’m working from memory here, but I think what you want might be;

    #wp-admin-bar { position: fixed !important; top: 0; }

    Not sure, as I chopped the stupid admin bar out weeks ago. It just confuses technophobes, who appear to be 98% of Internet users when it comes down to it. Also, removing it from WP via css and using ‘ozh-admin-drop-down-menu’ to minimise everything makes for a very slick interface with lots of screen space when playing Mr. Wizard.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Make admin bar take its own space and stay static’ is closed to new replies.
Skip to toolbar