Jump to content

change category page from grid_9 to grid_7 omega without affecting other pages


Recommended Posts

Hi,

 

 

My website is using the full width (980px) on all pages apart from the category page ( where the layered filter module is suppose to show up) .

i remove all modules from the left and right column, from evey pages, apart the category page, using the back office of prestashop.

i have set a condition on the header.tpl file to change the class grid of the center column for each page using the following code :

 

 

{if $page_name != 'index'||$page_name !='product'||$page_name !='new-products'}

<div id="center_column" class=" grid_9">

{else}

<div id="center_column" class=" grid_7 omega" align="center">

{/if}

 

but it seems that the following code is changing the class grid of the category page from 7 to 9 as well, while it should not.

 

Any idea ?

 

Regards

 

/Adel

post-27678-0-38111200-1351772251_thumb.jpg

post-27678-0-63736600-1351772266_thumb.jpg

post-27678-0-37729600-1351772274_thumb.jpg

Edited by Adel (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...