Local Fonts
-
Hi, is there a tutorial on how to use the local font feature in AMPforWP? I’ve tried uploading the font on the server, and adding a css font face in a custom css like this.
@ font-face { font-family: 'Poppins'; font-display: swap; font-style: normal; font-weight: 400; src: url ('https://www.urlweb.com/wp-content/uploads/2021/05/poppins-v15-latin-regular.eot'); src: local (''), url ('https://www.urlweb.com/wp-content/uploads/2021/05/poppins-v15-latin-regular.eot?#iefix') format ('embedded-opentype'), url ('https://www.urlweb.com/wp-content/uploads/2021/05/poppins-v15-latin-regular.woff2') format ('woff2'), url ('https://www.urlweb.com/wp-content/uploads/2021/05/poppins-v15-latin-regular.woff') format ('woff'), url ('https://www.urlweb.com/wp-content/uploads/2021/05/poppins-v15-latin-regular.ttf') format ('truetype'), } body,.cntn-wrp{font-family: 'poppins', sans-serif;}
But the font still doesn’t load (I tested it through network developer tools and GTMetrix. Am I wrong?
Thank you in advance
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Local Fonts’ is closed to new replies.