Posted By

scottnix on 10/06/11


Tagged

google wordpress fonts thematic enqueue


Versions (?)

Wordpress Load Google Fonts


 / Published in: PHP
 

URL: http://scottnix.com/code/wordpress/thematic-snippets/

Example of loading Google Fonts in Wordpress through enqueue (http://www.google.com/webfonts)

  1. // load google fonts
  2. function snix_google_fonts(){
  3. wp_enqueue_style( 'google-fonts', 'http://fonts.googleapis.com/css?family=PT+Sans:regular,bold' );
  4. }
  5. add_action('wp_enqueue_scripts', 'snix_google_fonts');

Report this snippet  

You need to login to post a comment.