Articles: All Listings RSS

Filter listings...
{stwpreview url="http://virginiabeachwebdevelopment.com/web-development-blog/magento-adding-css-and-javascript-includes-home-page-only" link="no" divwrap="no"}

virginiabeachwebdevelopment.com/web-development-blog/magento...

There are many cases where you would only want to have certain styles or JavaScript includes within the homepage of your ecommerce site. Magento makes it as easy as modifying a single XML file to add these.

Visited132
{stwpreview url="http://www.mindfreakerstuff.com/2012/10/add-javascript-css-to-home-page-or-specific-cms-page-magento/" link="no" divwrap="no"}

www.mindfreakerstuff.com/2012/10/add-javascript-css-to-home-...

CMS pages in Magento allow you to modify the layout XML specific to that page. So, all you need to do is open up the CMS page in Magento that you want to add the javascript to, click on the “Design” tab on the left, and in the “Layout ...

Visited142
{stwpreview url="http://stackoverflow.com/questions/13411764/add-css-to-only-homepage-from-xml-in-magento" link="no" divwrap="no"}

stackoverflow.com/questions/13411764/add-css-to-only-homepag...

Add css to only homepage from xml in magento

Visited227
{stwpreview url="http://prattski.com/2010/03/08/magento-add-javascript-to-home-page-only-or-any-cms-page/" link="no" divwrap="no"}

prattski.com/2010/03/08/magento-add-javascript-to-home-page-...

Have you ever needed to include a javascript file to the home page only to run that sweet slideshow you have displayed (or any other reason)? Fortunately, you don’t have to modify any of the layout files, or add it to your head.phtml file. CMS pa ...

Visited121