Magento Question:

Download Job Interview Questions and Answers PDF

How to add an external javascript/css file to Magento?

Magento Interview Question
Magento Interview Question

Answer:

1) <action method="addJs"><script>js/yourfile.js</script></action>
2) <action method="addCss"><stylesheet>css/yourstyle.css</stylesheet></action>
3) OR
4) <action method="addItem"><type>skin_js</type><name>js/ yourfile.js</name></action>
5) <action method="addItem"><type>skin_css</type><name>css/yourstyle. css</name></action>

Download Magento Interview Questions And Answers PDF

Previous QuestionNext Question
How to include CMS block in template file(.phtml)?How to set different themes for logged in users?