@font-face is not working on my site

Hi there,

Following the youtube demo, I am using the following,

font-face {
font-family: ‘riviera’;
src: url(’/home3/elevend4/public_html/wp-content/themes/x-child/fonts/riviera-webfont.woff2’) format(‘woff2’),
url(‘home3/elevend4/public_html/wp-content/themes/x-child/fonts/riviera-webfont.woff/’) format(‘woff’);
font-weight: normal;
font-style: normal;
}

but my fonts didnt changed. I tried disabling the Font Manager as well, and also the editing the .php still did not work.

can you advice ? Thanks !

Hey @elevendozen,

Looking at the code, you lack the @ sign before font-face. Please see this tutorial for the correct syntax. You’re also only using woff font format and that might not be supported in the browser you’re using. Please check its browser compatibility.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.