this is example how to add an external JS/CSS files to magento header into layout file :
<default>
<reference name=”head”>
<block type=”core/text” name=”google.cdn.jquery”>
<action method=”setText”>
<text><![CDATA[<script type=”text/javascript” src=”https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js”></script>
<script type=”text/javascript”>jQuery.noConflict();</script><link href=’http://fonts.googleapis.com/css?family=Montserrat’ rel=’stylesheet’ type=’text/css’>
]]></text>
</action></block>
</reference>
</default>
Be First to Comment