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

Answer

To add an external javascript or css file to Magento is too much easy as we can add this in any of below tow ways in xml layout file in given like in <catelog_product_view> part we an add in

<referense name="head">

<action method="addJs"><script>js/yourfile.js</script></action>
 <action method="addCss"><stylesheet>css/yourstyle.css</stylesheet></action>
 or
 <action method="addItem"><type>skin_js</type><name>js/ yourfile.js</name></action>
 <action method="addItem"><type>skin_css</type><name>css/yourstyle. css</name></action>

All magento Questions

Ask your interview questions on magento

Write Your comment or Questions if you want the answers on magento from magento Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---