Friday, July 13, 2012

How to add breadcrumb on contact us page in magento

If want to add breadcrumbs on the contact us page ,
open the layout file of your theme contacts.xml and serach the following code between
 the
   <contacts_index_index translate="label">
.......
......
</contacts_index_index>

and add the following line of code


<reference name="breadcrumbs">
        <action method="addCrumb">
            <crumbName>Home</crumbName>
            <crumbInfo>
                <label>Home</label>
                <title>Home</title>
                <link>/</link>
            </crumbInfo>
        </action>
        <action method="addCrumb">
            <crumbName>Contacts</crumbName>
            <crumbInfo>
                <label>Contact Us</label>
                <title>Contact Us</title>
            </crumbInfo>
        </action>
    </reference>


1 comment: