- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Magento. How to add sidebar to the Site Map page
January 29, 2016
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
-
Using your file manager navigate to app/design/frontend/tm_themes/themeXXX/layout folder.
-
Open local.xml file using any text editor.
-
Add the following code:
page/2columns-left.phtml -
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.
-
Let’s see an example of the 2columns-left page:
-
Comment or remove the following code:
-
Change the following code:page/1column.phtml to: page/2columns-left.phtml
As a result, you should have the following:
<-- --> page/2columns-left.phtml
-
-
Using the same method you can add the Right sidebar or both (Left and Right):
-
To keep Left and Right sidebars on Sitemap page, you need to remove:
-
Then change: page/1column.phtml to: page/3columns.phtml
Example:
page/3columns.phtml
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:
Thank you for reading this tutorial. Now you know how to edit Sitemap page layout.
-
Feel free to check the detailed video tutorial below: