Jump to content

Résolu - Image et description catégorie superposées.


Recommended Posts

Bonjour,

 

J'ai, provisoirement, réglé le problème en éditant le fichier category.tpl du theme concerné.

 

Ligne 48 :

<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'}) height="1" width="1"{/if}>

 

Bizarre de devoir procédé ainsi.

 

Je cherche toujours le pourquoi de la chose et comment éviter "normalement" ce problème.

Link to comment
Share on other sites

Bonjour

 

Remplace ça:

 <!-- Category image -->
 <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}>
         {if $category->description}
             <div class="cat_desc">
             <span class="category-name">
                {strip}
                    {$category->name|escape:'html':'UTF-8'}
                    {if isset($categoryNameComplement)}
                        {$categoryNameComplement|escape:'html':'UTF-8'}
                    {/if}
                {/strip}
            </span>
    ...

par ça:

       <!-- Category image -->
       <div class="">
       {if $category->description}
             <div class="cat_desc">
             {if $category->id_image}
                    <img class="img-responsive" src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html':'UTF-8'}" alt="" height="{$categorySize.height}"  />
             {/if}
             <span class="category-name">
                {strip}
                    {$category->name|escape:'html':'UTF-8'}
                    {if isset($categoryNameComplement)}
                        {$categoryNameComplement|escape:'html':'UTF-8'}
                    {/if}
                {/strip}
            </span>
...
Edited by S-HAMMANI (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...

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...