Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'wp_footer', 'hide_admin_bar_with_css' );
- function hide_admin_bar_with_css(){
- ?>
- <style>
- #wpadminbar{
- display:none;
- }
- html{
- margin-top: 0 !important;
- }
- </style>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement