Jump to content

Ajouter le nom des produits sous un visuel


Recommended Posts

Bonjour,

 

Le titre est présent dans la page mais caché par un display:none dans le css.

 

Je ne connais pas la structure du theme, mais regardez du coté de product-list.css ou global, ou je ne sais pas le css est compressé.

 

Cherchez ce bout de code :

 

.product_block .right_block h3 {
    display: none;
    margin-bottom: 0;
    padding: 0;
}
 
Et supprimez "display: none"
 
V++
 
Atch
Link to comment
Share on other sites

Bonjour Atch, merci pour votre réponse, j'ai cherché dans le fichier product-liss.css et voici ce que j'ai : 
 
 

/********** view-list *************/
.view-list .row-fluid [class*="span"]{
width:100%!important;
margin-left:0!important;
}
.view-list .product_block .right_block h3 {
display:block;
}
 
.view-list .product_block .center_block{
float:left;
overflow:hidden;
width:30%;
}
.view-list .product_block .product_img_link{
display:block;
}
.view-list .product_block .right_block{
background: none repeat scroll 0 0 transparent;
float: left;
margin-top: 12px;
padding: 0 5%;
position: static;
width: 60%;
}
 
.view-list .product_block .right_block .lnk_view {
   background: url("../img/default/cart-link-bg.png") repeat scroll right center #DC577A;
}
.view-list .product_block span.icon-addcart {
    background: url("../img/default/cart-link-bg.png") no-repeat scroll left center #DC577A; 
    border-radius: 3px 3px 3px 3px;
}
.view-list .product_block .product_block a:hover {
background: transparent;
}
.view-list .product_block .right_block h3 a {
font-size: 21px;
}
.view-list .product_block .right_block,
.view-list .product_block .product_desc a,
.view-list .product_block .right_block h3 a {
color:#797979;
}
 
.view-list .product_block .right_block span.price {
   color: #E93A67;
}
.view-list .right_block .discount,
.view-list .right_block .online_only {
top: 5px;
}

donc aucun display:none... 

Link to comment
Share on other sites

Désactivez simplement la compression CSS le temps de 5 minutes, et Firebug ou les outils de dev sous Chrome (F12), vous indiqueront précisement la ligne et le fichier dans lequel se trouve ce display:none :)

 

EDIT : global.css, ligne 2587 - grosso modo x)

Edited by Szed (see edit history)
Link to comment
Share on other sites

Donc pour décompresser je vais dans paramètres avancés > performances et dans le CCC "Smart cache" pour les feuilles de style je coche : Conserver le fonctionnement classique ?

 

EDIT : j'ai finalement trouvé à la ligne indiquée dans le global.css ! en revanche quand je mets la ligne display:none en commentaire rien ne change sur le site...

Edited by Ornella55 (see edit history)
Link to comment
Share on other sites

Pour cela, dans votre product-list.tpl, vous cherchez le <h3> qui contient le titre. Et vous allez voir un paramètre normalement: truncate:65 (par exemple), 65 étant le nombre de caractère qui vont s'afficher.

 

Il faut aussi augmenter la hauteur de .s_title_block dans le css qui est limité à 18px. Donc si votre titre passe à la ligne, il sera "caché" en partie.

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