How to remove html { margin-top: 28px !important; } – wordpress


  • Home
  • /
  • Blog
  • /
  • How to remove html { margin-top: 28px !important; } – wordpress

To remove html { margin-top: 28px !important; } from wordpress header:

First Step: Go to /wp-includes/admin-bar.php and edit around line 672 (in WordPress 3.3)

Second Step: Add a remove_action filter in you active theme/functions.php file like this, as this is a part of _admin_bar_bump_cb function which is defined in above mentioned file:

add_action(‘get_header’, ‘my_filter_head’);

function my_filter_head() {
remove_action(‘wp_head’, ‘_admin_bar_bump_cb’);
}

Share This Story

Got Something To Say:

Your email address will not be published. Required fields are marked *