Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/functions.php Secret
Created Sep 3, 2016

Embed
What would you like to do?
<?php
// Admin Bar
add_theme_support( 'admin-bar', array( 'callback' => '__return_false' ) );
.admin-bar .site-container {
padding-top: 32px;
}
@media only screen and (max-width: 782px) {
.admin-bar .site-container {
padding-top: 46px;
}
}
@leepeterson

This comment has been minimized.

Copy link

commented Feb 2, 2019

@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 from wp_head when admin_bar_init runs, or when get_header runs. Would you mind sharing your thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.