Title: Michael's Replies | WordPress.org

---

# Michael

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

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

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Issues with admin bar](https://wordpress.org/support/topic/issues-with-admin-bar/)
 *  Thread Starter [Michael](https://wordpress.org/support/users/deflect/)
 * (@deflect)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/issues-with-admin-bar/#post-2470973)
 * Sorry, I misposted slightly (and couldn’t find an edit feature).
 * I meant to say, after trying adding
 *     ```
       function fb_adjust_admin_bar() { ?>
       	<style type="text/css" media="screen">
       		html{
       			margin-top:0 !important;
       		}
       		* body body{
       			margin-top:0 !important;
       		}
       	</style> <?php
       }
       add_action( 'wp_head', 'fb_adjust_admin_bar' );
       ```
   
 * to functions.php, every webpage just displays
 *     ```
       <style type="text/css" media="screen">
       	html{ margin-top:0 !important; }
       	* body body{ margin-top:0 !important; }
       </style>
       <style type="text/css" media="print">#wpadminbar { display:none; }</style>
       <style type="text/css" media="screen">
       	html { margin-top: 28px !important; }
       	* html body { margin-top: 28px !important; }
       </style>
       ```
   
 * …and the lower style overrides the upper one.
 * How do I fix this?

Viewing 1 replies (of 1 total)