Forums

wp_head and wordpress 3.1 (6 posts)

  1. richiedude
    Member
    Posted 1 year ago #

    since upgrading to 3.1, i've noticed, that if i am on my site, logged in, i get this wordpess menu bar across the top of my website.

    also anyone else logged in, get this menubar overlayed as well.

    i know it isw coming from wp_head, because if i remove it, the menubar goes away.

    how can i have the option to remove it for anyone logged in?

  2. Samuel B
    moderator
    Posted 1 year ago #

    only logged in admins see the menu bar
    see this thread for what you can do
    http://wordpress.org/support/topic/troubleshooting-wordpress-31-master-list?replies=25

  3. Assiprinz
    Member
    Posted 1 year ago #

    You should be able to remove the admin bar by unchecking the option in the user preferences. It's the first of the two checkboxes for displaying the bar on the frontend.

    However, you can also add this code to your theme's function.php:

    //REMOVE ADMIN BAR
    remove_action(‘init’, ‘wp_admin_bar_init’);
  4. richiedude
    Member
    Posted 1 year ago #

    that code did not work.

    i have another site w/theme that doesn't have a functions.php

    where does functions.php get called from?

    i found a plugin that removes the admin bar. but i'd still like to know/understand how to get rid of it w/o the plugin.

  5. Samuel B
    moderator
    Posted 1 year ago #

    this the code for functions.php

    /* Disable the Admin Bar. */
    add_filter( 'show_admin_bar', '__return_false' );

    you can create a functions.php and add it to any theme (in same folder)
    http://codex.wordpress.org/Theme_Development#Functions_File

  6. tim@681webdesign
    Member
    Posted 1 year ago #

    Hi richiedude

    As assiprinz said, you can remove the admin bar in your user preferences.

    From your WordPress Dashboard:

    • Click on Users
    • Click on Your Profile

    On this screen under the first section Personal Options the last item is Admin Bar. The option when viewing site will probably be checked. Uncheck it to hide the admin bar when you're logged in and viewing the website.

    There is definitely no need to play around with any of the functions or plugins unless you are overly concerned about memory usage.

    Regards,
    tim@681webdesign

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags