ZenBasher Posted October 9, 2010 Share Posted October 9, 2010 HiCan someone tell me how to left align the category image please?I have tried every variation of alignment I can think of in both Global CSS and category.tpl as HTML and nothing makes any difference, it stay stuck in the middle.I'd very much appreciate any helpThanks! Link to comment Share on other sites More sharing options...
rocky Posted October 10, 2010 Share Posted October 10, 2010 Change lines 23-25 (in PrestaShop v1.3.2) of category.tpl in your theme's directory from: <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" /> to: {**} <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" /> {**} Link to comment Share on other sites More sharing options...
ZenBasher Posted October 26, 2010 Author Share Posted October 26, 2010 Thanks for your reply and my apologies for not responding sooner.I have done as you suggested and unfortunately that doesn't seem to have fixed the problemThe image moves by about 1/4" to the left, but doesn't left align...Any ideas on why that might be?Many thanks for your help so far! Link to comment Share on other sites More sharing options...
ZenBasher Posted October 26, 2010 Author Share Posted October 26, 2010 Aha! I've answered my own questionWhen uploading an image, the category image that PrestaShop creates is 500 pixels wide white box with the product centered within, so its impossible to left align.So that leads me to my next question, which is how can I change the default size of the category image that Presta creates? Link to comment Share on other sites More sharing options...
ZenBasher Posted October 26, 2010 Author Share Posted October 26, 2010 And a bit of forum searching reveals the answer to that question tooPreferences > Image > CategoryMy category images are now left aligned. Thanks! 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