Peter_UK Posted January 15, 2011 Share Posted January 15, 2011 Hi all,I have just moved to Prestashop, and am loving every minute of it.I am trying to:1. Get rid of the border around the featured products images as you can see on the image below.I have tried to change the size of the home images in admin -> preferences -> image but that does not work.I have tried changing the getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="80" width="80" alt="{$product.name|escape:html:'UTF-8'}" /> in homefeatured.tpl but that does not work either. So where can I change this? any advice more than welcome.2. Where can I change the title attributes of the home featured products so that it shows the whole title, as you can see in the image as well?All advice is really appreciated, and thank you in advance.Peter Link to comment Share on other sites More sharing options...
Peter_UK Posted January 15, 2011 Author Share Posted January 15, 2011 Anyone any advice?Thanks in advance Link to comment Share on other sites More sharing options...
rocky Posted January 16, 2011 Share Posted January 16, 2011 1) Do you mean the white border? You should upload bigger images that match the "Home" size, or go to Preferences > Images and reduce the size of the "Home" image size to match your images. Don't forget to click the "Regenerate thumbnails" button.2) Increase the truncate value in modules/homefeatured/homefeatured.tpl: <a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'} Link to comment Share on other sites More sharing options...
Peter_UK Posted January 16, 2011 Author Share Posted January 16, 2011 Hi Rocky, Thanks for the reply.I have tried to increase the truncate value from 130 to even 300, but nothing happens. Also when I change the size of the images, nothing happens.I changed the values in the homefeatured.tpl in the main modules as well as in the modules of the theme I am using. getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="100" width="100" alt="{$product.name|escape:html:'UTF-8'}" /> I also noticed the the images are not centered but are aligned to the left if you look in the pic above you can see this.Any advice?Thanks in advance Link to comment Share on other sites More sharing options...
rocky Posted January 17, 2011 Share Posted January 17, 2011 You might be editing the wrong file. The file may be overridden in your theme. Check whether themes//modules/homefeatured/homefeatured.tpl exists. If it does, change that file instead.Since you are using a third-party theme, it's hard for me to help. If you provide a link to your site, I can help more. Link to comment Share on other sites More sharing options...
Peter_UK Posted January 17, 2011 Author Share Posted January 17, 2011 Hi Rocky,Thanks again for the reply.I did think that might be the case, that the file was in the theme folder, so I edited them both. The code I gave above is from the theme.The link to my site is in my signature, www.guitaristbackingtracks.comThanks again in advance for your repliesPeter Link to comment Share on other sites More sharing options...
langbianiam Posted January 24, 2011 Share Posted January 24, 2011 Hi Rocky,Thanks again for the reply.I did think that might be the case, that the file was in the theme folder, so I edited them both. The code I gave above is from the theme.The link to my site is in my signature, www.guitaristbackingtracks.comThanks again in advance for your repliesPeter I think you change value in this code{$product.name|escape:htmlall:'UTF-8'|truncate:35} 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