Home / Prestashop Module Tutorials / Leo Elements Creator / How to customize full width category page with 6 products per line?

How to customize full width category page with 6 products per line?

Hi,

Please follow my guide to do it:

1. Set full width for category page

2. Edit some files

Add this code like image in file /themes/your_theme/templates/layouts/layout-both-columns.tpl:

{if $page.page_name == ‘category’} full-width{/if}

 

Add/edit this code like image in file /themes/your_theme/templates/catalog/_partials/miniatures/leo_col_products.tpl

{* start custom category *}
{if $page.page_name == ‘category’}
{assign var=’nbItemsPerLine’ value=6}
{assign var=”colValue” value=”col-sp-{12/$profile_params.pl_config.listing_product_mobile} col-xs-{12/$profile_params.pl_config.listing_product_mobile} col-sm-{12/$profile_params.pl_config.listing_product_extrasmalldevice} col-md-{12/$profile_params.pl_config.listing_product_tablet} col-lg-2 col-xl-2″ scope=”global”}
{else}
{assign var=”colValue” value=”col-sp-{12/$profile_params.pl_config.listing_product_mobile} col-xs-{12/$profile_params.pl_config.listing_product_mobile} col-sm-{12/$profile_params.pl_config.listing_product_extrasmalldevice} col-md-{12/$profile_params.pl_config.listing_product_tablet} {$col_cat_product_lg} {$col_cat_product_xl}” scope=”global”}
{/if}
{* end custom category *}

And edit code line 49:
use

{if $page.page_name != ‘category’}ajax_block_product{/if

instead of

ajax_block_product

Add this code at the end of the file /themes/your_theme/assets/css/custom.css

#category.layout-full-width .container.full-width {
width: 100% !important;
}

 

About Leo Theme

Check Also

Leotheme Black Friday 2022

Prestashop Theme and Module Black Friday and Cyber Monday Sales Leotheme 2022 30% Off

Prestashop Leotheme Black Friday 2022 Promotion! Dear valued customers, Black Friday and Cyber Monday Sales …