katychristina Posted June 9, 2012 Share Posted June 9, 2012 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 More sharing options...
razaro Posted June 9, 2012 Share Posted June 9, 2012 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'); }); 1 Link to comment Share on other sites More sharing options...
katychristina Posted June 9, 2012 Author Share Posted June 9, 2012 Cool! Thanks, but how about if I want four line with three products per line? please check again my site: www.lumewatch.com Link to comment Share on other sites More sharing options...
razaro Posted June 9, 2012 Share Posted June 9, 2012 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 More sharing options...
katychristina Posted June 9, 2012 Author Share Posted June 9, 2012 many many thanks!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now