Site logo

Archived topic

Local fonts not displaying properly

3 replies · Started by Rachel on March 13, 2022

Viewing posts 1–4 of 4

Hi,

thanks for taking the time to look into my issue.

I went through the local fonts tutorial of GP. I did everything in this vid but it looks like the font quicksand is not showing properly.

I have cleared the browser and caching cache as well as cdn cache.

My steps:

I have uploaded the font file into the media library all font formats are there.

This is the code I have pasted into the customiser:

/* quicksand-regular - latin */
@font-face {
font-family: 'Quicksand';
font-style: normal;
font-weight: 400;
src: url('https://www.periodwhisperer.com/wp-content/uploads/2022/02/quicksand-v28-latin-regular.eotquicksand-v28-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('https://www.periodwhisperer.com/wp-content/uploads/2022/02/quicksand-v28-latin-regular.eotquicksand-v28-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('https://www.periodwhisperer.com/wp-content/uploads/2022/02/quicksand-v28-latin-regular.eotquicksand-v28-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('https://www.periodwhisperer.com/wp-content/uploads/2022/02/quicksand-v28-latin-regular.eotquicksand-v28-latin-regular.woff') format('woff'), /* Modern Browsers */
url('https://www.periodwhisperer.com/wp-content/uploads/2022/02/quicksand-v28-latin-regular.eotquicksand-v28-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('https://www.periodwhisperer.com/wp-content/uploads/2022/02/quicksand-v28-latin-regular.eotquicksand-v28-latin-regular.svg#Quicksand') format('svg'); /* Legacy iOS */
}

Thank you

Hi there,

there's an issue with your URLs, for example the one loading the woff2

url(‘https://www.periodwhisperer.com/wp-content/uploads/2022/02/quicksand-v28-latin-regular.eotquicksand-v28-latin-regular.woff2’) format(‘woff2’), /* Super Modern Browsers */

It should look something like this:

url('https://www.periodwhisperer.com/wp-content/uploads/2022/02/quicksand-v28-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */

Which needs to be the exact URL to fonts location. And this goes for ALL those URLS

Thanks David, great as always!
I did the css again. Works now.

Have a great day

Awesome - glad to be of help!

This archived topic is closed to new replies.