Get the twinks for html,css,js,php,mysql.. Learn smart way of coding..

Friday, July 12, 2013

Wordpress HTML adding margin at top - FIX

At first,

NO, Nobody knows the reason for the "extra 28px margin adding to the HTML" issue.

For a simple fix goto your theme's functions.php and add this code at top.


<?php
function my_function_admin_bar(){ return false; }
add_filter( 'show_admin_bar' , 'my_function_admin_bar');
?>



Don't forgot to plus one this if this helped you

0 comments:

Post a Comment