Thread: @Font-face
View Single Post
Old 03-17-2011, 03:42 PM
Eugene Rimmer's Avatar
Eugene Rimmer Eugene Rimmer is offline
Senior Member
Join Date: Jan 2011
Location: Ecwid headquarters
Posts: 7,765

You shouldn't have the <script> tag inside the CSS in the first place. It raises the syntax error and for many browsers the remaining part of the CSS is considered invalid and is not taken into account while rendering.

The ecwid_nocssrewrite declaration is meant to stay in your shopping page markup, if you prefer to take care of your CSS rules' specificity by yourself, not relying on our automatic prefixing system. This option works for all your CSS theme and cannot be enabled conditionally for a part of it. Using this option is usually not recommended, unless you are totally sure of what you are doing.

What you should do now is to take the @font-face declaration into manually created outer CSS linked to your shopping page, but leave the declarations for font-family inside the Ecwid CSS theme.