If you need to set page template for all categories, you need to take into consideration of default categories as well as layered categories. Use
first we want to create local.xml file in your theme. in path like this
local.xml
file for this.app\design\frontend\<your_package>\<your_theme>\layout\local.xml
and write below code.
<? xml version="1.0"?>
<layout version="0.1.0">
<catalog_category_default> <! -- for default categories -->
<reference name="root">
<action method="setTemplate "><template>page/2columns-left. phtml </template></action>
</reference>
</catalog_category_default>
<catalog_category_layered> <! -- for layered categories -->
<reference name="root">
<action method="setTemplate "><template>page/2columns-left. phtml </template></action>
</reference>
</catalog_category_layered>
</layout>
hello you can also set your template without create local.xml file
just change in page.xml file
<block type="page/html" name="root" output="toHtml " template="page/3columns. phtml ">
to
<block type="page/html" name="root" output="toHtml " template="page/2columns-left. phtml ">
This code is to change your page template in. category list
Also, you can change your participate category template.
0 komentar:
Post a Comment