robchef Posted June 24, 2012 Share Posted June 24, 2012 is there a way of changing image size and text size in subcatergie with out chaning all of them in the rest of the in other subcatergies as when i change the size of image and text in on subcatergie it changes all of them please help Link to comment Share on other sites More sharing options...
shacker Posted June 29, 2012 Share Posted June 29, 2012 you can try this, put a if to change the size if the category ID is like 1 (or the id of you category to change the size) in category.tpl {if $subcategory.id_category eq "1"} {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img src="{$img_cat_dir}default-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} {else} {if $subcategory.id_image} <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img src="{$img_cat_dir}default-medium.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} {/if} Link to comment Share on other sites More sharing options...
Recommended Posts