Twenty Thirteen: remove toolbar callback in functions.php -- and add an `!important` in its place in the stylesheet. Props obenland, fixes #24129.

git-svn-id: https://develop.svn.wordpress.org/trunk@24036 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2013-04-18 21:33:45 +00:00
parent 3489c93b4c
commit 6b4da7c5ff
2 changed files with 2 additions and 16 deletions

View File

@ -49,7 +49,7 @@ if ( version_compare( $GLOBALS['wp_version'], '3.6-alpha', '<' ) )
* @uses load_theme_textdomain() For translation/localization support.
* @uses add_editor_style() To add a Visual Editor stylesheet.
* @uses add_theme_support() To add support for automatic feed links, post
* formats, admin bar, and post thumbnails.
* formats, and post thumbnails.
* @uses register_nav_menu() To add support for a navigation menu.
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.
*
@ -91,16 +91,6 @@ function twentythirteen_setup() {
'aside', 'audio', 'chat', 'gallery', 'image', 'quote', 'status'
) );
/*
* Custom callback to make it easier for our fixed navbar to coexist with
* the WordPress toolbar. See `.wp-toolbar` in style.css.
*
* @see WP_Admin_Bar::initialize()
*/
add_theme_support( 'admin-bar', array(
'callback' => '__return_false'
) );
// This theme uses wp_nav_menu() in one location.
register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) );

View File

@ -969,16 +969,12 @@ ul.nav-menu li:hover > ul,
}
/* Fixed Navbar */
.wp-toolbar {
margin-top: 28px;
}
.navbar-fixed {
margin-top: 45px;
}
.wp-toolbar.navbar-fixed {
margin-top: 73px;
margin-top: 73px !important;
}
.navbar-fixed .site-title {