Categories

Featured templates

Magento. How to add sidebar to the Site Map page

Ray Taylor January 29, 2016
Rating: 5.0/5. From 2 votes.
Please wait...

This tutorial will show you how to add a sidebar to the Sitemap page in Magento.

Magento. How to add sidebar to the Site Map page

  1. Using your file manager navigate to app/design/frontend/tm_themes/themeXXX/layout folder.

  2. Open local.xml file using any text editor.

  3. Add the following code:

    <catalog_seo_sitemap translate="label">
    <label>Catalog Seo Sitemap (Common)</label>
    <remove name="right"/>
    <remove name="left"/>
    <reference name="root">
    <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
    </reference>
    </catalog_seo_sitemap>
    
  4. Depending on what page layout you wish to use for Sitemap page, we can remove Left or Right Column or keep both of them for Three Columns Layout.

  5. Let’s see an example of the 2columns-left page:

    1. Comment or remove the following code:<remove name="left"/>

    2. Change the following code:<template>page/1column.phtml</template> to: <template>page/2columns-left.phtml</template>

      As a result, you should have the following:

      <catalog_seo_sitemap translate="label">
      <label>Catalog Seo Sitemap (Common)</label>
      <remove name="right"/>
      <-- <remove name="left"/> -->
      <reference name="root">
      <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
      </reference>
      </catalog_seo_sitemap>
      
  6. Using the same method you can add the Right sidebar or both (Left and Right):

    1. To keep Left and Right sidebars on Sitemap page, you need to remove:

      <remove name="right"/>
      <remove name="left"/>
      
    2. Then change: <template>page/1column.phtml</template> to: <template>page/3columns.phtml</template>

      Example:

      <catalog_seo_sitemap translate="label">
      <label>Catalog Seo Sitemap (Common)</label>
      <reference name="root">
      <action method="setTemplate"><template>page/3columns.phtml</template></action>
      </reference>
      </catalog_seo_sitemap>
      

      magento_add_sidebar_to_sitemap_page-1

      magento_add_sidebar_to_sitemap_page-2

    NOTE: If you do not see any changes on your site after following the above steps, please navigate to app/design/frontend/rwd/default/layout/catalog.xml, look for SEO Site Map and remove the following code:

    <remove name="right"/>
    <remove name="left"/>
    

    Thank you for reading this tutorial. Now you know how to edit Sitemap page layout.

Feel free to check the detailed video tutorial below:

Magento. How to add sidebar to the Site Map page

Magento Ecommerce Templates
This entry was posted in Magento Tutorials and tagged Magento, page, sidebar, site map. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket