paride79 Posted March 10, 2015 Share Posted March 10, 2015 Salve a tutti, ho aggiunto delle immagini alle categorie del mio sito e si vedono benissimo. Da smartphone invece sono troppo grandi rispetto allo schermo e si vede solo uno spicchio di immagine. Qualcuno mi sa dire come mai non c'è stato il resize? Grazie Link to comment Share on other sites More sharing options...
paride79 Posted March 11, 2015 Author Share Posted March 11, 2015 Allora dopo tante prove e ricerche ho risolto. Praticamente se non si inserisce una descrizione della categoria la foto non viene ridimensionata per il mobile. Inserendo anche solo un punto l'immagine viene correttamente visualizzata su smartphone. Link to comment Share on other sites More sharing options...
paride79 Posted March 11, 2015 Author Share Posted March 11, 2015 Se invece non si vuole inserire la descrizione breve nella categoria ovviando lo stesso al problema bisogna editare il file category.tpl La parte da ELIMINARE è la seguente: <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} 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