1. Peters
  2. Commercial Templates
  3. Thursday, 19 November 2015
  4.  Subscribe via email
Hello,

please can you help me to embed an Google Fonts Style in the Template?!
i found the Roboto Typo in the googlefonts.php - but i want the Thin 100 or Light 300 style.

And i don't now what i have to do, to have this option in the dropdown by the template "styling" in the backend.

I am looking forward to the answer :-)

Verena
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Verena

In your templates styles.php (../templates/j51_lifestyle/php/styles.php) edit the following to include other font weights...


echo '<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family='.$v.':300,400" /> ';


Change to something like...


echo '<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family='.$v.':100,200,300,400" /> ';


You can then appy the new font weights by adding the following to the Custom CSS field of your templates parameters (edit to taste)...


h3 {
font-weight: 100;
}


CiarĂ¡n
  1. more than a month ago
  2. Commercial Templates
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.