www.dooraccesscontrol.com Posted November 4, 2011 Share Posted November 4, 2011 Hi Guys, I am just setting up a prestashop site. Just a quick question. The block advertising module natively requires a image of 155x163 if you use the Advertising block configuration panel in the back office. I just want to use a smaller image which is the google checkout standard logo (200x36). I have tried to change the code in the blockadvertising.tpl file but still it forces the image to 155x163. Please see the image attached. I am using 1.4.5.1 Your help is very much appreciated. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted November 4, 2011 Share Posted November 4, 2011 Did you miss modifying the width and height values in the img tag in blockadvertising.tpl? <img src="{$image}" alt="{$adv_title}" title="{$adv_title}" width="155" height="163" /> Link to comment Share on other sites More sharing options...
www.dooraccesscontrol.com Posted November 4, 2011 Author Share Posted November 4, 2011 Yes I have tried that and just tried again and it still displays the default 200x36. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted November 4, 2011 Share Posted November 4, 2011 But you said: still it forces the image to 155x163 Link to comment Share on other sites More sharing options...
MrBaseball34 Posted November 4, 2011 Share Posted November 4, 2011 Show your TPL code, please Link to comment Share on other sites More sharing options...
MrBaseball34 Posted November 4, 2011 Share Posted November 4, 2011 the default 200x36. I don't see how, the CSS forces the whole block's div to 191px (blockadvertising.css) .advertising_block { width: 191px; margin-bottom: 1em; text-align: center } Link to comment Share on other sites More sharing options...
www.dooraccesscontrol.com Posted November 4, 2011 Author Share Posted November 4, 2011 <a href="{$adv_link}" title="{$adv_title}"><img src="{$image}" alt="{$adv_title}" title="{$adv_title}" width="200" height="36" /></a> </div> Link to comment Share on other sites More sharing options...
MrBaseball34 Posted November 4, 2011 Share Posted November 4, 2011 It displays the default 200x36. BECAUSE YOU TOLD IT TO. What size do you want the darn thing? You can't make it wider than 191px. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted November 4, 2011 Share Posted November 4, 2011 Resize the image to 191x34 and it should work. That keeps the aspect ratio. Link to comment Share on other sites More sharing options...
www.dooraccesscontrol.com Posted November 4, 2011 Author Share Posted November 4, 2011 All sorted thanks for your help MrBaseball34 your a star. Link to comment Share on other sites More sharing options...
Recommended Posts