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!