If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

Magento. How to add sidebar to the Site Map page

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

 
Live Chat
We help you to choose the right product.
Start chat