Jump to content

Category Images Placement


Recommended Posts

In 1.6 is there a way to keep the category image in grid view (for sub categories) but not have it displayed over category description? If you see HERE it covers over the description text.

 

I did some research on here and someone said they altered the picture to fit the description box using image mapping but if I use image mapping the category breaks the frame of the site and sits there without any site content.

 

Thanks

 

David

Link to comment
Share on other sites

hello

sure it's possible

open this file:

category.tpl

 

and alter this code:
 

<div class="content_scene_cat_bg" {if $category->id_image}style="background:url({$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}) 0 top no-repeat; background-size:contain; min-height:{$categorySize.height}px;" {/if}>

instead of it use this one:

<div class="content_scene_cat_bg" {if $category->id_image}style="min-height:{$categorySize.height}px;" {/if}>
Link to comment
Share on other sites

×
×
  • Create New...