Jump to content

Arranging images in featured products on the home page


Recommended Posts

Hi,

 

I want to configure the look of the featured products on the home page module. The default value to display images is set to 4, and I want to just display 2 images without it looking odd (as it is, the two images are toward the left, keeping room for two more). I went into the homefeatured.tpl file and changed the variable to 2, but it isn't doing anything. I am sure that there is some CSS that I need to change, but I can't find where that would be.

 

Thank you!

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

product-list.tpl

there is a code:
 

	{if $page_name !='index' && $page_name !='product'}
		{assign var='nbItemsPerLine' value=3}
		{assign var='nbItemsPerLineTablet' value=2}
		{assign var='nbItemsPerLineMobile' value=3}
	{else}
		{assign var='nbItemsPerLine' value=4}
		{assign var='nbItemsPerLineTablet' value=3}
		{assign var='nbItemsPerLineMobile' value=2}
	{/if}

change the:

{assign var='nbItemsPerLine' value=4}
        {assign var='nbItemsPerLineTablet' value=3}
        {assign var='nbItemsPerLineMobile' value=2}

to:

{assign var='nbItemsPerLine' value=2}
		{assign var='nbItemsPerLineTablet' value=2}
		{assign var='nbItemsPerLineMobile' value=2}
Link to comment
Share on other sites

there is also:

{if $page_name == 'index' || $page_name == 'product'} col-xs-12 col-sm-4 col-md-3{else}

change it to:
 

{$page_name == 'product'} col-xs-12 col-sm-4 col-md-3{elseif $page_name == 'index'}col-xs-12 col-sm-6 col-md-6{else}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...