here example layout script how to add external JS & CSS link use Magento way 😉
<reference name="head"> <block type="core/text" name="your_external_url"> <action method="setText"> <text><![CDATA[ <!-- ADD EXTERNAL JS/CSS or any miscellaneous script here--> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.js"></script> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css" /> ]]></text> </action> </block> <action method="addLinkRel"> <rel>stylesheet</rel> <href>//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css</href> <!-- ADD EXTERNAL CSS --> </action> </reference>
Comments are closed.