-
-
Save billerickson/c3de75554a3cb5d8feb306fce2301a13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Admin Bar | |
add_theme_support( 'admin-bar', array( 'callback' => '__return_false' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.admin-bar .site-container { | |
padding-top: 32px; | |
} | |
@media only screen and (max-width: 782px) { | |
.admin-bar .site-container { | |
padding-top: 46px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@billerickson Curious about your approach to this using
add_theme_support
as opposed to some of the more common approaches, such as removing_admin_bar_bump_cb
fromwp_head
whenadmin_bar_init
runs, or whenget_header
runs. Would you mind sharing your thoughts?