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

When you use wp_head() function in header.php at the end of the section.After using it automatically css apply margin-top 28px. So how to remove that margin top. It’s very easy you have to add in functions.php file this code :-


<code>add_action('get_header', 'my_filter_head');
function my_filter_head() {
remove_action('wp_head', '_admin_bar_bump_cb');
}</code>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s