Archive » October 2015

How to remove breadcrumb from a page in Magento

Magento

If you have a requirement to remove breadcrumb from certain pages say the Magento CMS Pages then you can simply follow the 2 steps:

Step 1Create a “local.xml” file in your custom theme layout folder

Add the following content to the local.xml file


<?xml version="1.0" ?>
<layout version="0.1.0">
    <cms_page translate="label">
        <reference name="root">
           <remove name="breadcrumbs"/>
        </reference>
    </cms_page>
</layout>

Continue reading »

How to add a JS or CSS file only on Home page in Magento

Magento

In order to optimize the performance of Magento websites it is recommended that you include only the relevant JS Or CSS files on a page. Generally all Magento websites have a slider on home page, so it is good idea to include the slider JS and CSS files only on the home page if none of the other web pages implement a slider.

Continue reading »

Back to top