Advertisement
afsarwebdev

To remove top bar of (32px) when loged in wordpress admin

Aug 21st, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. To remove top bar of (32px) when loged in admin panel.
  2.  
  3. add_action('get_header', 'my_filter_head');
  4.  
  5. function my_filter_head() {
  6. remove_action('wp_head', '_admin_bar_bump_cb');
  7. }
  8.  
  9. By default, if you are seeing the admin bar as a logged in WordPress user, CSS like this will be output in your head (output in the wp_head() function):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement