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: http://core.svn.wordpress.org/trunk@24036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-04-18 21:33:45 +00:00
parent 8794b1ceb0
commit 4fb7d7eadb
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 load_theme_textdomain() For translation/localization support.
* @uses add_editor_style() To add a Visual Editor stylesheet. * @uses add_editor_style() To add a Visual Editor stylesheet.
* @uses add_theme_support() To add support for automatic feed links, post * @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 register_nav_menu() To add support for a navigation menu.
* @uses set_post_thumbnail_size() To set a custom post thumbnail size. * @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' '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. // This theme uses wp_nav_menu() in one location.
register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) ); register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) );

View File

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