jcadima
3/16/2015 - 12:25 AM

Make category and product page templates to 1 column from the default of 2 columns

Make category and product page templates to 1 column from the default of 2 columns



<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * local.xml
 * Local layout modifications for our local theme
 * @category    design
 * @package     formulx
 * @author_url  http://www.localhost.com
 */
-->
<layout version="0.1.0">
    <default translate="label" module="page">
    
      // other xml entries
    
    </default>
    
    <!-- must be outside  default tags  -->
    <!--  change page template for categories from default 2 col to 1 col-->
    <catalog_category_default>
    	<reference name="root">
    		<action method="setTemplate">
    			<template>page/1column.phtml</template>
    		</action>
    	</reference>
    </catalog_category_default>
    
    
    <catalog_product_view>
    	<reference name="root">
    		<action method="setTemplate">
    			<template>page/1column.phtml</template>
    		</action>
    	</reference>
    </catalog_product_view>
    
    
</layout>