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 font with @font-face

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

Hello,

where to find documentation on how to add an extra font with @font-face method (so I need to add a css file and a font folder).

Thank you :)
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
The administrator has disabled public write access.
Are you wanting to control it via a template setting?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
yes, but if there are other alternatives it also interests me ...
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
The administrator has disabled public write access.
Via the admin is a little different

www.joomlabamboo.com/index.php?option=com_kunena&view=topic&catid=516&id=112255&Itemid=215#124999

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hello,
can you confirm that this method is valid to add an additional font to the template and doesn't replace the default font? I want to add an additional font in order to integrate icon-fonts.
… then how you manage the selection of the additional font in the admin template (dropdown menu)?

Thank you :)
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
The administrator has disabled public write access.
That adds a font like League Gothic to the list

Is is font-awesome you want to add?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
That adds a font like League Gothic to the list

...but I don't understand how Joomla will select two fonts in drop down menu? :huh:
For now here are the fonts that are selected for the template.
Is is font-awesome you want to add?
No, I'll use my own icon-fonts via Fontastic
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
Last Edit: 9 years 8 months ago by Lorenzo.
The administrator has disabled public write access.
No you can't select more than one font for a particular area

Looking at the fontastic site you could try using the custom code section and link to the file via the cdn

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
You may need to use !important on the selector
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
You may need to use !important on the selector

…if I understand what you're saying is: if the font that I selected is on, for exemple, Google font and I want to add an icon-fonts I need to use !important on the selector?
Looking at the fontastic site you could try using the custom code section and link to the file via the cdn

yes, I've thought about it but the service is limited to 5000 views (free service), but I'll try ... in which file I have to paste the <link href="fontastic.s3.amazonaws.com/...." rel="stylesheet">?
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
Last Edit: 9 years 8 months ago by Lorenzo.
The administrator has disabled public write access.
Yes that could be the case - if it doesn't work try adding !important

Try before close of </head>

I think they will advice on this

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
… yes I also think it must be placed before the closing </ head> but in which php file of the template?
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
The administrator has disabled public write access.
… I think that the templates/newlifestyle/tpls/head.php is the right file?
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
The administrator has disabled public write access.
Add it to the custom code section of the template settings
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
ok thank you, I'll try it ;)
  • Lorenzo's Avatar
  • Lorenzo
  • LIfetime Developer - Big Bamboo
  • 369 posts
  • 11 Thanks
  • Karma: 2
The administrator has disabled public write access.
No problem
  • 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