spikman Posted February 26, 2016 Share Posted February 26, 2016 hi i have a leo theme and the sub category images are being shown using the category image (870px × 217px) but it is rescaling it to 262px × 65px. the code in category.tpl is the following <div class="col-md-3 col-xs-6 col-sp-12"> <div class="subcategories scene_cat"> <div class="image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x img-responsive" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'category_default')|escape:'html':'UTF-8'}" alt=""/> {else} <img class="replace-2x img-responsive" src="{$img_cat_dir}{$lang_iso}-default-category_default.jpg" alt=""/> {/if} </a> </div> i would like to use the category thumbnail and change the size so that it shows a 262px x 262px but i can't see how to do it. can anybody help me thanks Link to comment Share on other sites More sharing options...
spikman Posted February 26, 2016 Author Share Posted February 26, 2016 tried that it any width and height always rescales to 262 x 65px. looked in category.css and global.css in no place, these dimentions are mentioned. really stuck Link to comment Share on other sites More sharing options...
spikman Posted February 26, 2016 Author Share Posted February 26, 2016 hi didn't help, still doing the same. Deleted the class="replace-2x img-responsive" living it like the following <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'category_default')|escape:'html':'UTF-8'}" width="262" height="262" alt=""/> Will not using this class do any harm to the theme in mobile devices? 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