WordPress.org

Make WordPress Core

Changeset 24036


Ignore:
Timestamp:
04/18/13 21:33:45 (12 months ago)
Author:
lancewillett
Message:

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

Location:
trunk/wp-content/themes/twentythirteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/functions.php

    r24032 r24036  
    5050 * @uses add_editor_style() To add a Visual Editor stylesheet. 
    5151 * @uses add_theme_support() To add support for automatic feed links, post 
    52  * formats, admin bar, and post thumbnails. 
     52 * formats, and post thumbnails. 
    5353 * @uses register_nav_menu() To add support for a navigation menu. 
    5454 * @uses set_post_thumbnail_size() To set a custom post thumbnail size. 
     
    9090    add_theme_support( 'post-formats', array( 
    9191        'aside', 'audio', 'chat', 'gallery', 'image', 'quote', 'status' 
    92     ) ); 
    93  
    94     /* 
    95      * Custom callback to make it easier for our fixed navbar to coexist with 
    96      * the WordPress toolbar. See `.wp-toolbar` in style.css. 
    97      * 
    98      * @see WP_Admin_Bar::initialize() 
    99      */ 
    100     add_theme_support( 'admin-bar', array( 
    101         'callback' => '__return_false' 
    10292    ) ); 
    10393 
  • trunk/wp-content/themes/twentythirteen/style.css

    r23991 r24036  
    970970 
    971971/* Fixed Navbar */ 
    972 .wp-toolbar { 
    973     margin-top: 28px; 
    974 } 
    975  
    976972.navbar-fixed { 
    977973    margin-top: 45px; 
     
    979975 
    980976.wp-toolbar.navbar-fixed { 
    981     margin-top: 73px; 
     977    margin-top: 73px !important; 
    982978} 
    983979 
Note: See TracChangeset for help on using the changeset viewer.