Bnji Posted July 22, 2009 Share Posted July 22, 2009 Bonjour,Je viens vers vous, car après plusieurs heures de recherche je n'ai pas trouvé ce que je recherchais, je ne cherche peut-être pas au bon endroit.J'ai actuellement deux problèmes.J'aimerais diviser 6 produits du module "produits phares afin" de pouvoir les ciblé un par un dans le css. Mon entreprise veut qu'il y ai un fond différent par produits. J'y arrive bien pour 3 produits car ils ont un nom de classe différent, mais pour les trois autres, ils portent le nom Link to comment Share on other sites More sharing options...
MakeOpen Posted July 22, 2009 Share Posted July 22, 2009 Mon deuxième problème est de mettre un commentaire conditionnelle pour IE. Tu as le choix :-D <!--[if IE]> According to the conditional comment this is Internet Explorer <!--[if IE 5]> According to the conditional comment this is Internet Explorer 5 <!--[if IE 5.0]> According to the conditional comment this is Internet Explorer 5.0 <!--[if IE 5.5]> According to the conditional comment this is Internet Explorer 5.5 <!--[if IE 6]> According to the conditional comment this is Internet Explorer 6 <!--[if IE 7]> According to the conditional comment this is Internet Explorer 7 <!--[if gte IE 5]> According to the conditional comment this is Internet Explorer 5 and up <!--[if lt IE 6]> According to the conditional comment this is Internet Explorer lower than 6 <!--[if lte IE 5.5]> According to the conditional comment this is Internet Explorer lower or equal to 5.5 <!--[if gt IE 6]> According to the conditional comment this is Internet Explorer greater than 6 Link to comment Share on other sites More sharing options...
Bnji Posted July 22, 2009 Author Share Posted July 22, 2009 Salut,Merci de ta réponsele problème n'est pas de savoir les commentaires conditionnelle mais ou le placer, dans quel fichier a quel endroit Link to comment Share on other sites More sharing options...
MakeOpen Posted July 22, 2009 Share Posted July 22, 2009 dans ton template, header.tpl dans le head Link to comment Share on other sites More sharing options...
Bnji Posted July 23, 2009 Author Share Posted July 23, 2009 Bonjour,C'est ici que je l'ai mis auparavant, mais cela ne marche pas ='( voici mon code : <html > <head> <!--[if IE]> <link href="css/global2.css" rel="stylesheet" type="text/css" media="{$media}" /> <base href="{$protocol}{$smarty.server.HTTP_HOST|escape:'htmlall':'UTF-8'}{$base_dir}" /> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:htmlall:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:htmlall:'UTF-8'}" /> {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico" /> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} [removed][removed] [removed] var baseDir = '{$base_dir}'; var static_token = '{$static_token}'; var token = '{$token}'; var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals}; [removed] [removed][removed] [removed][removed] {if isset($js_files)} {foreach from=$js_files item=js_uri} [removed][removed] {/foreach} {/if} {$HOOK_HEADER} </head> J'ai aussi essayé <link href="{$css_uri}/global2.css" rel="stylesheet" type="text/css" media="{$media}" /> Link to comment Share on other sites More sharing options...
Alekhine Posted July 23, 2009 Share Posted July 23, 2009 Hello,Je me demande si "link href="css/global2.css"" suffit ?Il ne faudrait pas partir de la racine "themes" ? il doit bien y avoir une variable THEME_DIR ou un truc du genre.. Link to comment Share on other sites More sharing options...
Célia Posted September 11, 2009 Share Posted September 11, 2009 Sais pas si t'as trouvé ? voici mon cas :Je n'ai pas trouvé de {$theme_dir} dispo (bien dommage car du coup il faudra écrire le chemin du theme ...) pas trouvé d'autres soluces : dans header.tpl : <!--[if IE 6]> <link href="/themes/montheme/css/pngfix.css" rel="stylesheet" type="text/css" media="screen" /> voili voulou ;-) 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