I added the code line below in local.xml with link to google, but we do not want to rely on an external url.

    <action method="addLinkRel"><rel>stylesheet</rel><href>//fonts.googleapis.com/css?family=Open+Sans</href></action>

So, we installed the "Open Sans" fonts-family (10 fonts) in skin/frontend/default/(our theme)/fonts.

What are the code lines we must add in local.xml to call multiple fonts from our local theme?

1 Answer 1


You do not need to add font in xml

Go to your style add below code in your stylesheet

@font-face {
    font-family: Open+Sans;
    src: url(../fonts/Open+Sans.ttf);  
  • We tried that previously and it didn't work (it crashed the whole style sheet). I will try again with your solution. Thanks Prashant
    – Gael
    Commented Dec 8, 2016 at 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.