SaLiC Posted April 7, 2015 Share Posted April 7, 2015 Hi I know there is another tread about this but for some reason it is not possible for me to reply it. I installed prestashop 1.6 with the default bootstrap theme but there is a problem with the category image. The image in the category description in top of category pages are positioned behind the text making it not easy to read. I wanna use a square image so it looks good in both the top of categori page as well as in the sub-menu grid. In the other tread i found the solution to change the img so it is no longer background img. This is fine, I also added an img class to the photo so the line in category.tpl looks like this now <div class="content_scene_cat_bg">{if $category->id_image}<img class="cat-img" src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}" alt="{$category->name|escape:'html':'UTF-8'}">{/if} For some reason that I can not figure out, the image is still displayed like 870*217px , with the original square image centered in the 870px. How can I remove this white background, and display a square img? When I manage that, it should be possible to re-position the image. Link to comment Share on other sites More sharing options...
PascalVG Posted April 7, 2015 Share Posted April 7, 2015 Hi SaLiC, just checking, but did you already change the size in Preferences->Images? if not: there you have a field category_default. If you edit this item, you can change the size to what you need. after that, scroll all the way down on this page and regenerate the categories images: Choose categories from the "Select an Image" drop down list choose category_default from the "Select a format" drop down list. Set erase mages to yes and press regenerate. Hope that helps, pascal 1 Link to comment Share on other sites More sharing options...
SaLiC Posted April 8, 2015 Author Share Posted April 8, 2015 Thank you! I feel a little stupid now Link to comment Share on other sites More sharing options...
PascalVG Posted April 8, 2015 Share Posted April 8, 2015 Don't worry, we've all been there, (and still, once a while...) I'll mark it as solved :-) Happy selling! pascal 1 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