Link to home
Start Free TrialLog in
Avatar of dresdena1
dresdena1

asked on

Embedded font only displaying under www

EE,
I have embedded fonts in a website:
www.fallwreaths.com

In IE and FireFox the embedded fonts only show up if the browser is in www.fallwreaths.com 

When the browser is http://fallwreaths.com the embedded fonts do not load.

Is there something I should do to get the fonts to load under both instances?

Thank you,
dresdena1
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

The Firefox Error Console shows this cross-site access error.  It is because you are using absolute paths and file names.  Since your fonts appear to be in the main directory, you might be able to use just the file name like 'breeserif-regular-webfont.woff' and get it to load in both circumstances.
downloadable font: download failed (font-family: "bree_serifregular" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed
source: http://www.fallwreaths.com/breeserif-regular-webfont.woff cssfw.css
downloadable font: download failed (font-family: "tangerineregular" style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed
source: http://www.fallwreaths.com/tangerine_regular-webfont.woff cssfw.css
downloadable font: download failed (font-family: "bree_serifregular" style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed
source: http://www.fallwreaths.com/breeserif-regular-webfont.ttf cssfw.css
downloadable font: no supported format found (font-family: "bree_serifregular" style:normal weight:normal stretch:normal src index:4)
source: (end of source list) cssfw.css
downloadable font: download failed (font-family: "tangerineregular" style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed
source: http://www.fallwreaths.com/tangerine_regular-webfont.ttf cssfw.css
downloadable font: no supported format found (font-family: "tangerineregular" style:normal weight:normal stretch:normal src index:4)
source: (end of source list) cssfw.css

Open in new window

Avatar of dresdena1
dresdena1

ASKER

Dave Baldwin,
Thanks for the quick response!
The css file in a different directory (publish) than the rest of the pages.
The cart (ShopSite) is setup that way. The CSS is generated in a separate directory.
That's why I use absolute paths.
Do you have any thoughts on a workaround?

dresdena1
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you Dave!
Perfect!
You're welcome, glad to help.