mohsen2 Posted March 10, 2011 Share Posted March 10, 2011 Hello,i have a problem i need to change the Thumbnails of the category.php how can i do it ?When i change the size in Preferences >> Image then the Thumbnails in home also change, how can i give a diffrent Thumbnails size for the home and a diffrent Thumbnails size for the category.phpThank you Link to comment Share on other sites More sharing options...
echonetic Posted March 10, 2011 Share Posted March 10, 2011 For which images on the category pages. There a main category image and also sub category image which are the home size. Also the product list has the home size image. I can tell you how to change it in the template, but need to know exactly what images you are asking about. A screenshot would be good Link to comment Share on other sites More sharing options...
mohsen2 Posted March 10, 2011 Author Share Posted March 10, 2011 Thanks for the reply Yes, the Thumbnails size in the home are good , but i want the Thumbnails size in the category to be different,Please take a look at the imagesThank you Link to comment Share on other sites More sharing options...
echonetic Posted March 10, 2011 Share Posted March 10, 2011 You can change the size in product-list.tpl. right now around line 33 you have: getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /> Change it to: getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="125px" height="125px"{/if} /> in the example, I hard coded the image size to be 125px by 125px you can change it to whatever you want.. Keep in mind, i would try to maintain aspect ratio. This will give you the home size image you have and a different image size you specify in the categories sorting Link to comment Share on other sites More sharing options...
mohsen2 Posted March 10, 2011 Author Share Posted March 10, 2011 Thank you very much its working, i have one other problem , the Subcategories listing are not sorted in the center how can i do it ?Thanks again Link to comment Share on other sites More sharing options...
goodbreeze Posted November 17, 2011 Share Posted November 17, 2011 I am having a similar issue. The theme is squishing my 'large' thumbnail and distorting the image. Attached is a screen shot. You can see the larger image of the board is squished compared to the smaller image below it. I can provide the code from the template if needed. Link to comment Share on other sites More sharing options...
echonetic Posted November 18, 2011 Share Posted November 18, 2011 Your issue is in http://www.kiteboard.../css/global.css line 805, your css style for img#bigpic is 208px x 258px and your image is square. So, it is getting squashed. You can change the height to 258px in the css to give a square div and that will straighten out your images. I tend to make all the image divs to have square dimensions and when the product images are created in photoshop or whatever, make the images square and everything always looks proper. Quick note that if you do change the height in line 805 to 258px you will need to change the padding on line 852 for ul#usefull_link_block to padding: 100px 0 0; to push it down a bit to make room for the new image height. I have attached a screenshot of the same page with changes made in firebug. Link to comment Share on other sites More sharing options...
echonetic Posted November 18, 2011 Share Posted November 18, 2011 I guess I should have attached the screenshot Link to comment Share on other sites More sharing options...
echonetic Posted November 18, 2011 Share Posted November 18, 2011 If you have an issues with this.. Your area code is 321, we are neighbors. Link to comment Share on other sites More sharing options...
goodbreeze Posted November 19, 2011 Share Posted November 19, 2011 Thanks so much for your quick response and help! I cant see the screen shot for some reason but ill try that and see how it goes. Ill send you a pm about some stuff. Link to comment Share on other sites More sharing options...
goodbreeze Posted November 19, 2011 Share Posted November 19, 2011 That worked perfectly...Thanks again. The only other little issue with this theme is that the Name and Short Description are overlapping on some items on the Home Page. Im sure its a quick fix but I dont know where to find it. Any thoughts? You can see it on the center item on the first row. Link to comment Share on other sites More sharing options...
Mindz Posted January 8, 2014 Share Posted January 8, 2014 Hi, I have a problem as well with thumbnails, I regenerated 'ALL' and now this is what I have, please can you help me understanding what went wrong? Thanks Link to comment Share on other sites More sharing options...
walidon Posted January 8, 2014 Share Posted January 8, 2014 this is a topic dated back to more that 3 years! please open a new topic with your problem. Link to comment Share on other sites More sharing options...
vekia Posted January 8, 2014 Share Posted January 8, 2014 that's right, it's an old outdated topic related to 1.2/1.3 version. i closed it this topic. if someone is interested in this topic continue discussion here (new thread); http://www.prestashop.com/forums/topic/300237-small-thumbnail-in-products-squeezed/?do=findComment&comment=1518207 or just create new topics Link to comment Share on other sites More sharing options...
Recommended Posts