Skip to:
Content
Pages
Categories
Search
Top
Bottom

Make admin bar take its own space and stay static

  • Avatar of thegreyspot
    thegreyspot
    Member

    @thegreyspot

    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)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    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:

    http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/

    Avatar of thegreyspot
    thegreyspot
    Member

    @thegreyspot

    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

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

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

    Avatar of thegreyspot
    thegreyspot
    Member

    @thegreyspot

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

    Avatar of thegreyspot
    thegreyspot
    Member

    @thegreyspot

    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!

    @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)

You must be logged in to reply to this topic.