Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Add second Google font family

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello again :dry:
concerning the addition of a second Google font, I used the Custom Font section in the options of the template configuration.




Is it possible to add rules directly in the custom.css file instead of placing them in the fields provided for this purpose?
It's inconvenient to introduce these rules in this place every time that I need a new font-family rule... :(

Thank you
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
Last Edit: 9 years 2 weeks ago by Lorenzo.
The administrator has disabled public write access.
...any idea? :dry:
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
The administrator has disabled public write access.
You try something along these lines

css-tricks.com/snippets/css/using-font-face/

Having created the font files first

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
ok, I'll use @font-face.

Just two questions:

- @font-face rules can be added in custom.css file?
- in which folder I have to copy new fonts?

Thank you
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
The administrator has disabled public write access.
One other way would be to use the custom scripts and then add it to opening head tag

<link href='fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>

then use important to override as required
e.g. p {font-family: oswald !important;}

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The following user(s) said Thank You: Lorenzo
... I prefer this solution, thank you ;)
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
The administrator has disabled public write access.
Cool

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers