WordPress.org

Ready to get started?Download WordPress

Ideas

Admin Bar visibility control

  1. Frank P. Walentynowicz
    Member

    12345

    Administrator's user profile should have Admin Bar visibilty control. Either checkbox 'Disable Admin Bar' or radio buttons.

    Posted: 3 years ago #
  2. ucfknight10
    Member

    um, does it not?

    Posted: 3 years ago #
  3. Frank P. Walentynowicz
    Member

    12345

    Seems to have it now. Thanks.

    Posted: 3 years ago #
  4. ucfknight10
    Member

    *mark as resolved*

    Posted: 3 years ago #
  5. monajain
    Member

    Hi,

    Can anyone tell how can i disable the admin bar at the top of the page??? I am using wordpress 3.1 version.

    Thanks

    Posted: 3 years ago #
  6. Frank P. Walentynowicz
    Member

    12345

    Go to your profile and uncheck both boxes under 'Show Admin Bar'.

    Posted: 3 years ago #
  7. Rob
    Member

    For some reason, I can't get the admin bar to show up. On some of the sites I manage, it does, but on others, including my own, it doesn't.

    I have the option checked to show it when I'm viewing the site, but it's not working. Any ideas?

    Posted: 3 years ago #
  8. Zac Schutt
    Member

    The themes on the sites that the admin bar isn't showing up on are probably missing the <?php wp_head(); ?> element. Just put that between the head tags in the header.php file of the theme like this:

    <head>
        <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    
    	<?php wp_head(); ?>
    
    </head>
    Posted: 3 years ago #
  9. JMC Creative
    Member

    Me too: the admin bar is on some of my 3.1 sites and not others. The profile box is checked correctly, and the wp_head() is on all the sites with the <head> tags. I think there is a different issue going on here.

    Posted: 3 years ago #
  10. Rob
    Member

    Thanks for the tip, Zac! It helped me find the rest of the answer that JMC's probably missing.

    Adding the wp_head() function added the CSS for the margin needed at the top, but it didn't add the admin bar itself.

    For JMC and other future readers, it turns out that the admin bar feature requires <?php wp_footer(); ?> as well (should be inserted right before the </body> tag), since that's where it sticks the HTML for the bar.

    Hope that helps someone!

    Posted: 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    6 Votes
  • Status

    This idea has been implemented