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.
git-svn-id: https://develop.svn.wordpress.org/trunk@24516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6102515450
commit
4a6eef5627
File diff suppressed because one or more lines are too long
|
@ -168,6 +168,8 @@ function twentythirteen_fonts() {
|
|||
$fonts_url = twentythirteen_fonts_url();
|
||||
if ( ! empty( $fonts_url ) )
|
||||
wp_enqueue_style( 'twentythirteen-fonts', esc_url_raw( $fonts_url ), array(), null );
|
||||
|
||||
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/fonts/genericons.css', array(), '2.09' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twentythirteen_fonts' );
|
||||
|
||||
|
|
|
@ -467,24 +467,6 @@ hr {
|
|||
* ----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Genericons, a flexible icon-font.
|
||||
* License: GPL version 2 or any later version with font exception (http://www.gnu.org/licenses/gpl-faq.html#FontException)
|
||||
* See also LICENSE.txt and COPYING.txt in the ./fonts directory.
|
||||
* Thanks to FontSquirrel for web-font conversion!
|
||||
* More info: genericons.com
|
||||
*/
|
||||
@font-face {
|
||||
font-family: Genericons;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: url(fonts/genericons-regular-webfont.eot);
|
||||
src: url(fonts/genericons-regular-webfont.eot?#iefix) format("embedded-opentype"),
|
||||
url(fonts/genericons-regular-webfont.woff) format("woff"),
|
||||
url(fonts/genericons-regular-webfont.ttf) format("truetype"),
|
||||
url(fonts/genericons-regular-webfont.svg#genericonsregular) format("svg");
|
||||
}
|
||||
|
||||
.genericon:before,
|
||||
.menu-toggle:after,
|
||||
.featured-post:before,
|
||||
|
|
Loading…
Reference in New Issue