From 6b4da7c5ffda8724bbac8f74f8dc2c4e237b6749 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 18 Apr 2013 21:33:45 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentythirteen/functions.php | 12 +----------- wp-content/themes/twentythirteen/style.css | 6 +----- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index c908b176f7..e05098ba71 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -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' ) ); diff --git a/wp-content/themes/twentythirteen/style.css b/wp-content/themes/twentythirteen/style.css index b03143b524..3e71814bd8 100644 --- a/wp-content/themes/twentythirteen/style.css +++ b/wp-content/themes/twentythirteen/style.css @@ -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 {