Thursday, February 5, 2015

Magento Cross Domain Font issue

I recently dealt with an issue on fonts where the font face fonts would load from a static... url instead of www.. To fix this I've added a more direct url in the font.css file

//www.something.co.za/skin/frontend/default/theme/fonts/something-webfont.woff and added the following code

<block name="fonts" type="core/text">   <action method="setText">     <text><link href="//www.something.co.za/skin /frontend/default/theme/fonts/font.css" rel="stylesheet" type="text/css"></link>     </text>   </action> 

to the page layout with the CDATA tags around the 'text'

No comments:

Post a Comment