Jump to content

Reduce the "min-height" of image category


Recommended Posts

This is in category.tpl file:

 

<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'}) right center no-repeat; background-size:cover; min-height:{$categorySize.height}px;"{/if}>
as you can see there is min-height:{$categorySize.height}px; if you want to have specific height you can put it in px for example min-height:150px;
Link to comment
Share on other sites

Don't work..

 

I made this:

<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'}) right center no-repeat; background-size:cover; min-height:150px;"{/if}>

 

in the themes/default-bootstrap/category.tpl

 

It's correct?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...