[Template/Script]Add Google Webfonts to Font Picker Apr 20, 2013 0:33:31 GMT -8 TIKOLICIOUS, aRMY83, and 11 more like this
Post by Chris on Apr 20, 2013 0:33:31 GMT -8
If you use Google's Webfonts to add custom fonts to your V5 forum then this template modification will allow those fonts to appear in the font picker on both the Preview and BBCode tabs of the WYSIWYG editor as well as show up in the preview pane.
The Google webfonts should already
be installed on your forum (instructions)
- if using the UBBC in Quick Reply plugin older than version 0.8.7 then see this reply, or better yet, upgrade to the latest version of the plugin
- if you have fonts hosted at another server (not Google Webfonts) then see this reply for a way to get them into the font dropdown list as well.
- if you add a good amount of fonts so that it causes the font picker to stretch beyond the height of the page then see the bottom of this reply
The code can instead be placed in your global header to affect all themes and plugins. Use it as a template mod only if you wish to reduce its footprint by having it only run on the WYSIWYG (posting) page or only on certain themes.
At the bottom of your Posting Page template
add the following:
the following older code has been retired, if still using then upgrading is strongly recommended.