Title: webfixnow's Replies | WordPress.org

---

# webfixnow

  [  ](https://wordpress.org/support/users/webfixnow/)

 *   [Profile](https://wordpress.org/support/users/webfixnow/)
 *   [Topics Started](https://wordpress.org/support/users/webfixnow/topics/)
 *   [Replies Created](https://wordpress.org/support/users/webfixnow/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/webfixnow/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/webfixnow/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/webfixnow/engagements/)
 *   [Favorites](https://wordpress.org/support/users/webfixnow/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Turn off TOP BAR (login bar/toolbar) for PUBLIC (not logged in) users](https://wordpress.org/support/topic/turn-off-top-bar-admin-bartoolbar-for-public-not-logged-in-users/)
 *  Thread Starter [webfixnow](https://wordpress.org/support/users/webfixnow/)
 * (@webfixnow)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/turn-off-top-bar-admin-bartoolbar-for-public-not-logged-in-users/#post-4810007)
 * The purpose of adding it to the core files is to override any theme used so that
   when switching between themes one would not have to modify each themes code.
 * After some extensive testing it seems that this location is not ideal because
   of the use of code in WP that uses header(); in some of the PHP files for redirection
   and in some cases causes a PHP error that headers cannot be modified because 
   OUTPUT was already started.
 * It is better to modify the **header.php** within each themes folder that you 
   use to include the following code at the very top of the file:
 *     ```
       <?php
       if (!is_user_logged_in()) {
       	echo "<style type='text/css'>
       	#wpadminbar { display:none !important;}
       	html { margin-top: 0px !important; }
       	* html body { margin-top: 0px !important; }
       	</style>";
       }
       ?>
       ```
   
 * I have tested the above with logging in and out, posting, etc, all without errors.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Turn off TOP BAR (login bar/toolbar) for PUBLIC (not logged in) users](https://wordpress.org/support/topic/turn-off-top-bar-admin-bartoolbar-for-public-not-logged-in-users/)
 *  Thread Starter [webfixnow](https://wordpress.org/support/users/webfixnow/)
 * (@webfixnow)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/turn-off-top-bar-admin-bartoolbar-for-public-not-logged-in-users/#post-4809999)
 * Sorry, correction to title made. Login bar or WP dubbed “Toolbar.”

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