[wp-trac] [WordPress Trac] #21694: Twenty Twelve - Customize: Enable Open Sans Typeface

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 28 03:33:08 UTC 2012


#21694: Twenty Twelve - Customize: Enable Open Sans Typeface
---------------------------------+--------------------
 Reporter:  viniciusmassuchetto  |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  3.5
Component:  Bundled Theme        |     Version:  3.4.1
 Severity:  normal               |  Resolution:
 Keywords:                       |
---------------------------------+--------------------

Comment (by lancewillett):

 A more elegant solution, incorporating the default font with a
 {{{body_class}}} value, from Nacin tonight in IRC.

 > add a body class like body.open-sans in twentytwelve_body_class() only
 if wp_script_is( 'enqueue' ) for twentytwelve-fonts.
 > then just dequeueing the font makes the whole thing vanish.

 https://gist.github.com/3494376

 To dequeue in a child theme:

 > add_action( 'wp_enqueue_scripts', function() { wp_dequeue_style(
 'twentytwelve-fonts' ); }, 11 );

 See full [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 dev&day=2012-08-28&sort=asc#m445539 IRC chat log].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21694#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list