Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * WordPress Coding By Khalequzzaman
- */
- function
- remove_adminbar_margin() {
- $remove_adminbar_margin =
- '<style type="text/css">
- html { margin-top: -28px !
- important; }
- * html body { margin-top:
- -28px !important; }
- </style>';
- echo $remove_adminbar_margin;
- }
- /* wp-admin area */
- if ( is_admin() ) {
- remove_action( 'init',
- '_wp_admin_bar_init' );
- add_action('admin_head',
- 'remove_adminbar_margin');
- }
- /* websites */
- if (!is_admin() ) {
- remove_action('init',
- '_wp_admin_bar_init' );
- add_action('wp_head',
- 'remove_adminbar_margin');
- }
Add Comment
Please, Sign In to add comment