Adding Google - font in YJSG Templates
Before any changes please BACKUP your current template!!!
1. Go to http://www.google.com/webfonts and choose the font that you need. Click "Add to Collection" and then click "Use" at the bottom of the screen. Leave that screen open for the 2nd step. 2. Go to : Your_root_folder\templates\your_template\yjsgcore and open yjsg_googlefonts.php and add a new case for it: PHP Code:
To find your font family name and you font param go to the google page earlier open. And scroll down to this part : http://i53.tinypic.com/28gtmzd.jpg The highlited part shows you your font family. http://i53.tinypic.com/2qx5ik5.jpg The highlited part shows you your font param. 3. Go to : Your_root_folder\templates\your_template and open templateDetails.xml and find this code : For joomla version 1.5 : Code:
<param name="google_font_family" type="yjsglist" default="2" label="G_FONT_FAM_LABEL" description="G_FONT_FAM_DESC">Code:
<field name="cufon_font_family" type="yjsglist" default="1" label="CU_FONT_FAM_LABEL" description="CU_FONT_FAM_DESC">4. Go to your Administration > Extensions > Template Manager > Tab - Style Settings under param "Use Element Tags font override" select "Yes" then under tab "Google Font-Family" select your font and you're good to go. |
Hey, Skip2MyLove!
Great tuto, congratulations! I was wondering if there is any tutorial on how to add more fonts to CSS. For instance, I am using YouPlus and the defaul font used in the demo is a GoogleFont family (Yanone Kaffeesatz). So, everytime I refresh the site, it connects to Google (to load the font I think). Is there any way to add this font to CSS so it will come from my server and not from Google? If so, please, how to? Actually, I tried to do the same procedure for CSS as described for Google Fonts, it works, but the local font is a bit different from Google (it's a little bit larger) and it does not support characters like ç, Ç, ã, Ã, ô, Õ, etc (while Google Fonts does). UPDATE: I've managed to add new fonts that comes from my server, thanks to arefund that made this tutorial: http://www.youjoomla.com/joomla_supp...1-5-1-6-a.html Thank you. |
Quote:
|
Always prioritize safety and take the necessary precautions when working with ladders. Stay alert, use common sense, and never compromise on safety.
best attic ladder 2023 |
| All times are GMT -4. The time now is 04:00 PM. |
Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.