WordPress.org

Make WordPress Core

Changeset 24516


Ignore:
Timestamp:
06/25/13 22:03:42 (10 months ago)
Author:
lancewillett
Message:

Twenty Thirteen: enqueue Genericons CSS from its own file, to allow for easier updates and maintenance, and to allow for better plugin overrides. Props obenland, closes #24595.

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

Legend:

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

    r24514 r24516  
    169169    if ( ! empty( $fonts_url ) ) 
    170170        wp_enqueue_style( 'twentythirteen-fonts', esc_url_raw( $fonts_url ), array(), null ); 
     171 
     172    wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '2.09' ); 
    171173} 
    172174add_action( 'wp_enqueue_scripts', 'twentythirteen_fonts' ); 
  • trunk/wp-content/themes/twentythirteen/style.css

    r24513 r24516  
    468468 */ 
    469469 
    470 /** 
    471  * Genericons, a flexible icon-font. 
    472  * License: GPL version 2 or any later version with font exception (http://www.gnu.org/licenses/gpl-faq.html#FontException) 
    473  * See also LICENSE.txt and COPYING.txt in the ./fonts directory. 
    474  * Thanks to FontSquirrel for web-font conversion! 
    475  * More info: genericons.com 
    476  */ 
    477 @font-face { 
    478     font-family: Genericons; 
    479     font-style: normal; 
    480     font-weight: normal; 
    481     src: url(fonts/genericons-regular-webfont.eot); 
    482     src: url(fonts/genericons-regular-webfont.eot?#iefix) format("embedded-opentype"), 
    483          url(fonts/genericons-regular-webfont.woff) format("woff"), 
    484          url(fonts/genericons-regular-webfont.ttf) format("truetype"), 
    485          url(fonts/genericons-regular-webfont.svg#genericonsregular) format("svg"); 
    486 } 
    487  
    488470.genericon:before, 
    489471.menu-toggle:after, 
Note: See TracChangeset for help on using the changeset viewer.