Hardwell Posted July 10, 2012 Share Posted July 10, 2012 Voila ca fait 2 heures que j'essaye de mettre un background à ma page d'accueil, et devinez quoi...J'Y ARRIVE PAS ! j'ai le theme de base de prestashop, j'ai trouvé 2 ou 3 tutos mais impossible il se passe rien, j'ai toujours le fond blanc de base ... Celui qui me viendra en aide sera le dieu de ma journée ! Link to comment Share on other sites More sharing options...
Carl Favre Posted July 10, 2012 Share Posted July 10, 2012 Bonjour Hardwell, Tu as bien vidé le cache et forcé la compilation pour voir les changements ? Pour ça il faut aller dans Back-office > Préférences > Performances. Link to comment Share on other sites More sharing options...
Hardwell Posted July 10, 2012 Author Share Posted July 10, 2012 Oui oui cela a été fait, c'est vraiment incompréhensible, je rentre les codes aux bons endroits, j'enregistre et puis rien, ca n'a rien changé :/ Link to comment Share on other sites More sharing options...
Carl Favre Posted July 10, 2012 Share Posted July 10, 2012 Tu pourrais indiquer les changements que tu as fait ? Ainsi que les fichiers modifiés ? Link to comment Share on other sites More sharing options...
Hardwell Posted July 10, 2012 Author Share Posted July 10, 2012 Oui, alors j'ai modifié uniquement dans global.css : Ligne 15 body { background-color: white; font-size: 11px; font-family: Verdana, Arial, Helvetica, Sans-Serif; color: #5d717e; text-align: center; background-image: #000000 url(../img/458.jpg); } Link to comment Share on other sites More sharing options...
Carl Favre Posted July 10, 2012 Share Posted July 10, 2012 Essaie avec background:url (../img/458.jpg); Le chemin vers l'image est bien le bon d'ailleurs ? Link to comment Share on other sites More sharing options...
Hardwell Posted July 10, 2012 Author Share Posted July 10, 2012 (edited) Malheureusement toujours rien,oui la photo est dans le dossier img quoi faire ? vaut-il mieux que je réinstalle presta ? Edited July 10, 2012 by Hardwell (see edit history) Link to comment Share on other sites More sharing options...
Carl Favre Posted July 10, 2012 Share Posted July 10, 2012 Tu pourrais donner le lien vers ton site pour voir ? Link to comment Share on other sites More sharing options...
Hardwell Posted July 10, 2012 Author Share Posted July 10, 2012 c'est un site en local Link to comment Share on other sites More sharing options...
Carl Favre Posted July 10, 2012 Share Posted July 10, 2012 Si tu as Firefox/Chrome, regarde le code et vérifie que l'url mène bien à ton image. Link to comment Share on other sites More sharing options...
Hardwell Posted July 10, 2012 Author Share Posted July 10, 2012 (edited) justement tu fais bien de me dire cela j'ai oublié de le précisé, dans chrome je clique droit pour inspecter le fond blanc, et bizarrement ma ligne de code(uniquement celle de l'image) que je vois dans notepad n'y est pas... Edited July 10, 2012 by Hardwell (see edit history) Link to comment Share on other sites More sharing options...
Carl Favre Posted July 10, 2012 Share Posted July 10, 2012 Quand tu inspectes le fond qu'as-tu exactement ? Quand tu regardes le global.css tu y trouves bien le background:url (....) ? Link to comment Share on other sites More sharing options...
Hardwell Posted July 10, 2012 Author Share Posted July 10, 2012 media="all" body { background-color: white; font-size: 11px; font-family: Verdana, Arial, Helvetica, Sans-Serif; color: #5D717E; text-align: center; } tout est dit, il n'y est pas ... comment ca se fait ? Link to comment Share on other sites More sharing options...
zolt Posted July 10, 2012 Share Posted July 10, 2012 (edited) body { background-color: white; font-size: 11px; font-family: Verdana, Arial, Helvetica, Sans-Serif; color: #5d717e; text-align: center; background-image: #000000 url(../img/458.jpg); } Tu as 2 background dans ton code ! Supprime la ligne background-color: white; Fait come ceci: body { font-size: 11px; font-family: Verdana, Arial, Helvetica, Sans-Serif; color: #5d717e; text-align: center; background-image: #000000 url(../img/458.jpg); } @++ Edited July 10, 2012 by zolt (see edit history) Link to comment Share on other sites More sharing options...
Hardwell Posted July 10, 2012 Author Share Posted July 10, 2012 je commence à me demander si j'édite bien dans le bon css ! je viens de supprimer ma ligne couleur blanche mais je le retrouve encore dans chrome Link to comment Share on other sites More sharing options...
zolt Posted July 10, 2012 Share Posted July 10, 2012 (edited) Tu es bien dans le: http://localhost/themes/prestashop/css/global.css Edited July 10, 2012 by zolt (see edit history) Link to comment Share on other sites More sharing options...
Hardwell Posted July 10, 2012 Author Share Posted July 10, 2012 si l'adresse que tu me donnes concerne le fichier global.css que j'ai ouvert avec notepad, alors oui je suis bien là Link to comment Share on other sites More sharing options...
Hardwell Posted July 10, 2012 Author Share Posted July 10, 2012 (edited) NAAAAAAAAAAAN je viens de me rendre compte de ma c******, je suis dans le dossier d'install de presta et non dans le dossier du serveur. BOULEEEETTT que je suis.... Edited July 10, 2012 by Hardwell (see edit history) Link to comment Share on other sites More sharing options...
zolt Posted July 10, 2012 Share Posted July 10, 2012 (edited) Sous firefox, tu as installé le module firebug ? https://addons.mozil.../addon/firebug/ Je travail toujours avec ce module, j'ai créer un thème en 24 heures: pragmamx.ca @++ Edited July 10, 2012 by zolt (see edit history) Link to comment Share on other sites More sharing options...
Sandrine Thiébaut Posted July 11, 2012 Share Posted July 11, 2012 Bonjour, L'autre souci est que la déclaration css n'est pas bonne : background-image: #000000 url(../img/458.jpg); n'est pas valide. dans la déclaration "background-image" on ne peut mettre que l'url de l'image. Le fait de mettre une déclaration de couleur devant peut fausser la compréhension et emp^écher la lecture de la ligne. Ecrivez plutôt background-image: url(../img/458.jpg); Bonne journée 1 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