Jump to content

White Space Between Featured Products Block


Recommended Posts

Edit file modules/homefeaturedX/homefeatured.css: (make backup!)  (I see you have copies of this modules, so do it for all, or at least file modules/homefeatured4/homefeatured.css, as this file will normally override the values of modules/homefeatured1-3)
 
#featured-products_block_center li {

   margin-right: 14.5px;

   padding: 10px 10px;

   width: 126px;

   text-align: center;

   height: 210px;

}
 

 

in themes/<your theme folder>/modules/homefeaturedX

 

edit file homefeatured.tpl (back up first!)

 

You see some code like:

		<div class="block_content">
			{assign var='liHeight' value=250}
			{assign var='nbItemsPerLine' value=4}
			{assign var='nbLi' value=$products|@count}
			{math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
			{math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}
			<ul style="height:{$ulHeight}px;">
			{foreach from=$products item=product name=homeFeaturedProducts}
				{math equation="(total%perLine)" total=$smarty.foreach.homeFeaturedProducts.total 

First try to change the second line of this bock:

 

            {assign var='liHeight' value=230}

 
 
if that doesn't work, try to directly change the height in a fixed value: (4th line from bottom of code shown above)

change:

           <ul style="height:{$ulHeight}px;">
into:

           <ul style="height:230px;">
 
That should do the trick. Don't forget to make backups, just in case.
Don't forget tho turn off cache and force compile template in adv. parameters/performance temporarily to see the results)
 
pascal.
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...