abetts Posted May 8, 2013 Share Posted May 8, 2013 Any idea on what's causing this and how to fix it please? Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2013 Share Posted May 8, 2013 hello your website is online? If so, please share the url we will try to debug it Link to comment Share on other sites More sharing options...
Paulito Posted May 8, 2013 Share Posted May 8, 2013 Good morning pbracing.it Paul Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2013 Share Posted May 8, 2013 Good morning pbracing.it Paul you're hacker Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2013 Share Posted May 8, 2013 the answer is: you have to define height param for <li> in homefeatured. Without hardcoded li height param - the height for each elements is different, so it causes a gap under the li which has got different height (much bigger) than other elements Link to comment Share on other sites More sharing options...
abetts Posted May 9, 2013 Author Share Posted May 9, 2013 Thanks. How do I do that please? (PS it's www.pbracingshop.com) Link to comment Share on other sites More sharing options...
vekia Posted May 9, 2013 Share Posted May 9, 2013 Thanks. How do I do that please? (PS it's www.pbracingshop.com) go to the modules/homefeatured/homefeatured.tpl file. You've got there probably something like: <ul style="height:{$ulHeight}px;"> {foreach from=$products item=product name=homeFeaturedProducts} <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1}clear{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> we are interested in this: <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1}clear{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> add to this style="height:250px!important;" something like: <li style="height:250px!important;" class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1}clear{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> apply changes and reload your store frontpage. Remember that sometimes it is necessary to turn force compilaton on - this features is for "recompile" the theme. After all - turn it off. sometimes, homefeatured.tpl file is also located in your theme directory: themes/_your_theme_/modules/homefeatured/homefeatured.tpl if so - you have to apply changes there let me know if this works for you regards Link to comment Share on other sites More sharing options...
abetts Posted May 10, 2013 Author Share Posted May 10, 2013 Legend, thank you Link to comment Share on other sites More sharing options...
vekia Posted May 10, 2013 Share Posted May 10, 2013 Legend, thank you Im glad that this works for you :-) I marked this thread as solved for other forum members, now everyone will know how to fix this anyway, you can also mark own threads as solved, here it is instruction form forum rules: [sOLVED] Topic If, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution. There is nothing more frustrating for users with the same issue who come across your post "all is good, I fixed it..." without an explanation of how to fix it. Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED]. To mark a topic as [solved] : - Edit the first post of your topic by clicking on the "Edit" button, - Click on the "Use full editor" button, - Add the "[solved]" string at the beginning of your topic title and click on the "Submit Modified Post" button. Posters who do not abide by this (at the demand of the moderators or other users) will have their new topics closed until the problem has been resolved. we will be gratefull if you will follow this steps in future :-) regards Link to comment Share on other sites More sharing options...
abetts Posted May 10, 2013 Author Share Posted May 10, 2013 Sorry, will do. Thanks again 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