1. dautrich
  2. Sherlock Holmes The Voice
  3. Commercial Templates
  4. Sunday, 07 June 2020
  5.  Subscribe via email
Is it possible to provide Google fonts and Font Awesome from local site with Skylar?
How to achieve this?
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

By default FontAwesome will be loaded locally with your template.

For Google fonts you will need to upload a copy of your Google font to../templates/[YourTemplate]/fonts folder.

To import these files you can add the following to the Custom CSS field of your templates parameters..

@font-face {
font-family: 'YourFont';
src: url('../fonts/yourfont-webfont.eot');
src: url('../fonts/yourfont-webfont.eot') format('embedded-opentype'), url('../fonts/yourfont-webfont.woff2') format('woff2'), url('../fonts/yourfont-webfont.woff') format('woff'), url('../fonts/yourfont-webfont.ttf') format('truetype'), url('../fonts/yourfont-webfont.svg') format('svg');
font-weight: normal;
font-style: normal;
}


Lastly you will need to stop the template from loading your font from Google by removing the following from your templates ../templates/[YourTemplate]/inc/fonts.php

foreach ($googlefonts as $v) { // loop
$app->getDocument()->addStyleSheet('//http://fonts.googleapis.com/css?family=' . $v . ':' . $font_weights . '&&subset=' . $font_subset . '&display=swap');
}


Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
There is also the following detailed description on this topic... https://www.joomla51.com/forum/google-fonts-eu-dsgvo?start=20#reply-34691

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Local loading of Google fonts done! Thank you for your explanation!
  1. more than a month ago
  2. Commercial Templates
  3. # 3
  • 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.