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:
To find your font family name and you font param go to the google page earlier open. And scroll down to this part :
The highlited part shows you your font family.
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 :
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.
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
|All times are GMT -4. The time now is 02:48 PM.|
Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.