Viewing 6 replies - 1 through 6 (of 6 total)
  • Please choose “Remove admin bar on site pages” option only.

    Thread Starter M Rasid

    (@mamun669)

    Hello
    This is not working. If I choose “Hide admin bar completely” and “Remove admin bar customizations on site pages” then the top admin bar hide for registered users only. And when I signed out that admin bar appears again.
    I want this same set up for non registered users and visitors only. If possible, please help.

    Thanks

    AG Custom Admin admin bar settings are applied only for registered users (visitors should not see admin bar by default in WordPress)

    Admin bar should be hidden when you’re logged out. It could be that some other plugin is re-enabling admin bar for non-registered users. Please try to find which one by disabling plugins one by one.

    Please check this post, might be helpful
    http://wordpress.org/support/topic/hide-admin-bar-from-logged-out-useres?replies=11

    Putting this in header.php:

    <?php if ( !is_user_logged_in() ){ ?>
    			<style>
                #wpadminbar{ display:none; }
                </style>
    		<?php } ?>

    should hide admin bar even for visitors in your case

    Thread Starter M Rasid

    (@mamun669)

    Thanks. The code you provided is working now to hide admin bar for non logged in users.

    <?php if ( !is_user_logged_in() ){ ?>
    <style>
    #wpadminbar{ display:none; }
    </style>
    <?php } ?>

    The problem is now blank space, where the admin bar existed. Please take a look at http://www.public-post.com/

    How to makeup or remove this blank space. Can you help? please..

    Try adding this:

    html {
        margin-top: 0 !important;
    }

    inside style tags in the same code.

    Thread Starter M Rasid

    (@mamun669)

    great! thank you so much….

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

The topic ‘Top admin bar does not hide for non registered users’ is closed to new replies.