vanyvan Posted March 24, 2015 Share Posted March 24, 2015 Bonjour, Petit soucis avec mes catégories. En effet, le texte de description se retrouve au milieu de l'image. Je précise que je suis grande débutante et donc incapable de modifier category.tpl , etc... comme j'ai pu lire sur d'autres sujets. Une solution? Bonne fin de journée! Link to comment Share on other sites More sharing options...
Szed Posted March 24, 2015 Share Posted March 24, 2015 C'est probablement le comportement de votre thème. Il nous faudrait un lien, ou le nom du thème que l'on puisse voir une démo. Et nous dire ou vous souhaitez passer la description, sous l'image ? Link to comment Share on other sites More sharing options...
vanyvan Posted March 25, 2015 Author Share Posted March 25, 2015 Merci de votre réponse. Pour l'instant, je travaille sur le thème par défault "bootstrap". Je souhaiterais passer la description sous l'image. Link to comment Share on other sites More sharing options...
Szed Posted March 25, 2015 Share Posted March 25, 2015 Il vous faut dans le category.tpl déplacer tout le bloc {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> {if Tools::strlen($category->description) > 350} <div id="category_description_short" class="rte">{$description_short}</div> <div id="category_description_full" class="unvisible rte">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div class="rte">{$category->description}</div> {/if} </div> {/if} Et vous le coller juste au dessus du <h1> par exemple. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now