Temerario Posted December 2, 2014 Share Posted December 2, 2014 i want change the size in list of subcategory (standard 125 x 125). I have create a new type of image anche call medium_default_cat 260 x 70 only category In the category.tpl i change {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />{else} <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />{/if} IN {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default_cat')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />{else} <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />{/if} But i don't see the new pic with new size but the standard when not exist image. Why? where i wrong? Link to comment Share on other sites More sharing options...
shacker Posted December 7, 2014 Share Posted December 7, 2014 have you regenerated the images? and force compile? check if the css dont puch the width of the images too Link to comment Share on other sites More sharing options...
Recommended Posts