Skip to:
Content
Pages
Categories
Search
Top
Bottom

Centering Admin Bar (fixed width)

  • Avatar of Dark Severance
    Dark Severance
    Participant

    @darkseverance

    I created a theme, edited some stuff in header.php and footer.php putting them into the WP theme directory that I made for it. There are a few things I’m having issues figuring out how to edit, without going into the overwriting parts in the default.css, adminbar.css, reset.css, etc.

    Example URL:

    http://wowtcg.podwow.com/

    The buddypress/admin bar at the top. I am trying to get it to be centered like the rest of the page so that it has a fixed width, however I’m not having any luck. Anyone have any suggestions on what I can do?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Add this to child theme’s stylesheet:

    #wp-admin-bar .padder {width:1097px !important;}

    Btw 1097px is a little wide…

    Avatar of Dark Severance
    Dark Severance
    Participant

    @darkseverance

    Yeah that is what I put in it thinking that would override what was there. When I’m actually done it won’t be that wide but I needed a size that I could tell was actually doing something. However I think there is a !important tag for width already in default.css that may be contributing to the issue.

    Originally I just did the edits the default, adminbar, style.css for BuddyPress. But the last update broke all the changes. So now I’m trying to do it through the child theme so it won’t break with a BP update.

    Avatar of freemancork
    freemancork
    Member

    @freemancork

    Learn to write plugins. It’s tough but will future proof your modifications.

    Avatar of freemancork
    freemancork
    Member

    @freemancork

    Thanks r-a-y! This worked for me also.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.