WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP-admin bar (5 posts)

  1. egilarntzen
    Member
    Posted 8 months ago #

    URL: http://www.tomrerdahl.no

    When you scroll down on this site, there is a hidden menu showing.
    But the admin-bar is overlapping the hidden menu.

    Any ideas? Please?

  2. missybunnie
    Member
    Posted 8 months ago #

    Just curious but who is going to be logged in at the time that the menu is showing? If your users won't be logged in then it shouldn't be a problem because it appears as I assume you want it when I go there. If the users do log in you may need to add some contingencies to change the design if the user is logged in.

  3. egilarntzen
    Member
    Posted 8 months ago #

    Thanks for your reply!

    This site is for a client. And he was bothered about it. So I might as well just fix it...

  4. missybunnie
    Member
    Posted 8 months ago #

    Yeah I'd use <?php if ( is_user_logged_in() ) { ... } ?> and just put a style tag in true. Maybe just notch it down a little with a margin or create a top padding. This should allow you to make the changes if the bar is there.

  5. egilarntzen
    Member
    Posted 8 months ago #

    Put this in my header.php:

    <?php if ( is_user_logged_in() ) { ?>
    <style  type="text/css" media="screen">
    #slider { padding-top:23px;!important; }
    </style>
    <?php } ?>

    Thanks!

Reply

You must log in to post.

About this Topic