academe / google-webfonts-for-woo-framework

WordPress plugin to pull Google Webfonts into Canvas theme
8 stars 4 forks source link

Enqueue font styles #18

Open judgej opened 10 years ago

judgej commented 10 years ago

Since we are now replacing the Woo Framework method of outputting the font stylesheet links in the header, we should probably use the enqueue method of adding those stylesheets:

http://www.webdesignfromscratch.com/wordpress-tutorials/using-google-web-fonts-with-wordpress-the-right-way/

This will help compatibility with other plugins and will ensure the styles appear in the correct place in the header and use the correct html syntax (i.e. whatever tags the WP installation wants to use, allowing those to be overridden by a theme or another plugin where required).

judgej commented 10 years ago

Some useful hints and an explanation here:

http://wordpress.stackexchange.com/questions/55924/when-to-use-add-actioninit-vs-add-actionwp-enqueue-scripts