Magento Resource | E-Commerce Generation Explorer

TAG | JAVASCRIPT

Adding and removing javascript / css when and where you need it

Adding and removing Javascript and CSS is handled separately within Magento.

CSS is added in the usual like . But any included javascript (unless linked to “by hand” from a theme’s skin) is pulled via a php files which reads through the “js” folder in the root directory (root/js/index.php is responsible for this).

That is all well and good for Magento. The real question is how we, as developers, add these items when we need them.
In this post, we will show how to add and remove Javascript and CSS to a CMS page (and anywhere else) that you may need.
(more…)

· · ·

Theme Design by devolux.nh2.me