Jump to content
sickshot

block manufacturers logo alignment?

Recommended Posts

im using www.catalogo-onlinersi.com.ar block manufacturers module to show logos on front page.

 

by default it shows one logo under another.

what I want to do is to display 4 logos, 2 on one line and 2 on the second line under the first two logos.

 

i tried css but no luck.

 

please if anyone can help.

 

 

heres the originak css code:

 

/* Block manufacturer */

.blockmanufactureri li {border-bottom:1px dotted #ccc; text-align:center}

.blockmanufactureri li.last { border:none;}

.blockmanufactureri li a {

display:block;

padding:7px 11px 5px 22px;

color:#333;

background:none

}

 

 

.blockmanufactureri form {margin-top:10px;}

.blockmanufactureri p {

padding:0;

text-align:center

}

.blockmanufactureri ul.bullet li, .blockmanufactureri li.bullet{ background:none; padding:0}

post-236603-0-33306600-1365177825_thumb.jpg

Edited by sickshot (see edit history)

Share this post


Link to post
Share on other sites

Hi, please provide a live link since we dont have the same installation and modules in order to test that css code.

Edited by Snade (see edit history)

Share this post


Link to post
Share on other sites

unfortunatly, site is not live online so i cant provide a link.

 

im using PrestaShop 1.5.3.1 and module version 1.0

 

please if any ideas i can test it myself....

Share this post


Link to post
Share on other sites

found a temporary solution. so the code will be:

 

 

 

.blockmanufactureri ul {margin-top: 16px; width: 300px; list-style: none; line-height: normal; }

.blockmanufactureri li { float: left; width: 98px; border: none; text-align:center; padding-bottom: 9px; }

Share this post


Link to post
Share on other sites

We were looking for this solution too and we came up the following

 

edit your blockmanufacturer.tpl around line 35 between the {foreach} statements we put

 

{if $smarty.foreach.manufacturer_list.iteration <= $text_list_nb}
  <a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}" title="{l s='More about' mod='manufacturerlogos'} {$manufacturer.name}"> <img src="{$img_manu_dir}{$manufacturer.id_manufacturer}.jpg"  width="48" height="50"/></a></li>
 {/if}

 

This displayed our logos 3 in a row

 

hope this helps

Share this post


Link to post
Share on other sites

well i'll give it a try, but can it display 2 rows? i mean 6 logos?

 

my code doesnt appears correct in Opera anyway

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More