To comply with the GDPR legislation, as of now the Google fonts are hosted on CCV Shop's own domain. This change takes place in the background. If you are using a standard theme, you do not need to make any further changes. If you are using a ProTOM theme, you can use this guide to load the correct Google Fonts.
To use the "local version" of the Google fonts, you can make the following change in the code:
OPTION 1
You need to change the link with the Google URL, in the 'href' of the <link> tag, to the URL with the local font.
Example:
Old href:
https://fonts.googleapis.com/css2?family=Open+Sans
New href:
https://demo.ccvshop.nl/Global/Files/Fonts/Google/Open-Sans/Open-Sans.css
Note: Don't forget to change 'demo.ccvshop.nl' to your own webshop URL.
OPTION 2
You can also use a code snippet/snippet containing the location to the local font. This is called 'Google fonts location'. Again, you put this in the 'href' of the <link> tag.
This then automatically fills in the domain and the local fonts path. After that comes the font to be used, you need to complete this yourself.
Example:
Old href:
https://fonts.googleapis.com/css2?family=Open+Sans
New href:
{$sGoogleFontsLocation}Open-Sans/Open-Sans.css
Please note the following for both options:
- The names are case sensitive.
- Any spaces in font names should be replaced with a "-".
- Additional parameters such as: wght, ital or swap are no longer needed.
- Google fonts also include Material Icons.
Comments
0 comments
Article is closed for comments.