Skip to:
Content
Pages
Categories
Search
Top
Bottom

Admin Bar and Spacing Issues


  • Wordpress_Dunce
    Member

    @wordpress_dunce

    I just finished installing the latest version of wordpress and buddypress. I went through the ‘upgrade your existing WordPress theme’ wizard with the TwentyTen Five html5 theme and everything looks great. When I selected the hide admin bar for logged out users it kept the padding on the top of the site and it moved everything else down. Is there a way to remove the padding for when users are logged out and have it added back in when users are logged in?

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

  • modemlooper
    Moderator

    @modemlooper

    @karmatosed I was going to put in a ticket for this issue. Maybe you could come up with a fix?


    Tammie Lister
    Moderator

    @karmatosed

    My idea would be to use the body class:


    .logged-in

    For instance we have the following class and style for the padding:


    body {
    padding-top: 25px;
    }

    We could use something like this:


    body.logged-in{
    padding-top: 25px!important;
    }

    body{
    padding-top: 0px!important;
    }

    This would be in the child theme and unfortunately requires some bunny killing by the use of !important as a dirty fix.

    A ticket does seem sensible to me with a simple class change on if logged in like I’ve put there. Whilst we do need that padding there it just sticking with no admin bar probably isn’t best.

    In the ticket / non hacky method I’d suggest it without the bunny killing code :):


    body.logged-in{
    padding-top: 25px;
    }

    body{
    padding-top: 0px;
    }


    Tammie Lister
    Moderator

    @karmatosed

    I will add you’d need to add a clause of ‘if the logged in tick isn’t there use the padding-top – it’s really 2 fold the CSS and the PHP check to see if that check is there I think.


    modemlooper
    Moderator

    @modemlooper

    My ticket would be to suggest a BP admin check for displaying admin bar and then supplying the correct css.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Admin Bar and Spacing Issues’ is closed to new replies.
Skip to toolbar