Jump to content

Is it a Bug? Featured Products...


Recommended Posts

my website: www.lumewatch.com

 

The Featured products module, I set it as 9 items, so that suppose to be 3 item per line, and there are 3 line.

 

and now the third line appear just two products, the last products jump to the forth line...why like that? Is it a bug?

 

Please help me...

 

Thanks a lot

Link to comment
Share on other sites

Try this, in themes/theme152/js/js.js replace

$(function(){
$('div#featured-products_block_center ul li').eq(2).addClass('second');
$('div#featured-products_block_center ul li').eq(5).addClass('second');
});
$(function(){
$('div#featured-products_block_center ul li').eq(2).addClass('extra');
});

with

$(function(){
$('div#featured-products_block_center ul li').eq(2).addClass('second');
$('div#featured-products_block_center ul li').eq(5).addClass('second');
$('div#featured-products_block_center ul li').eq(8).addClass('second');
});
$(function(){
$('div#featured-products_block_center ul li').eq(2).addClass('extra');
$('div#featured-products_block_center ul li').eq(5).addClass('extra');
});

  • Like 1
Link to comment
Share on other sites

How change it to

$(function(){
$('div#featured-products_block_center ul li').eq(2).addClass('second');
$('div#featured-products_block_center ul li').eq(5).addClass('second');
$('div#featured-products_block_center ul li').eq(8).addClass('second');
$('div#featured-products_block_center ul li').eq(11).addClass('second');
});
$(function(){
$('div#featured-products_block_center ul li').eq(2).addClass('extra');
$('div#featured-products_block_center ul li').eq(5).addClass('extra');
$('div#featured-products_block_center ul li').eq(8).addClass('extra');
});

 

And I think you see pattern, so if you want another (fifth) line you will need to add

two more lines but with eq(14) in first function and eq(11) in second.

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...