| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Single column on category/collection pages only | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Single column on category/collection pages only
I am using the sportlife template, I want to use 2 column layout (main column + sidebar) but only on category/collection pages. Main "home" page I want want 1 column (no sidebars). Product pages seem to stay one column no matter what layout type is selected which is fine. Can't seem to find a setting for this in the admin area. Anyone know how to have home page display one column while internal pages use columns?
__________________
XC 5.2.4 business |
|||||||
#2
|
|||||||
|
|||||||
Re: Single column on category/collection pages only
Quote:
You can disable left column from a file called "Layout.php". the file is located under classes/XLite/Core/Layout.php. Inside the layout.php, you will find following code which is responsible to show/hide left column on the pages you want. /** * Define the pages where first sidebar will be hidden. * By default we hide it on: * product page, * cart page, * checkout page * checkout success (invoice) page * payment page * * @return array */ protected function getSidebarFirstHiddenTargets() { return array( 'cart', 'product', 'checkout', 'checkoutPayment', 'checkoutSuccess', ); } /** * Define the pages where second sidebar will be hidden. * By default we hide it on: * product page, * cart page, * checkout page * checkout success (invoice) page * payment page * * @return array */ protected function getSidebarSecondHiddenTargets() { return array( 'cart', 'product', 'checkout', 'checkoutPayment', 'checkoutSuccess', ); } // }}} }
__________________
Mohammad UMAR X-Cart Business 5.2.5 |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|