Vous n'êtes pas identifié.
Annonce
Annonce 1 : Le Codex en français a besoin de vous pour avancer !
Annonce 2 : Avant de poster, n'oubliez pas de faire une petite Recherche et de lire les règles de ce forum.
Annonce 3 : Lisez notre blog, il regorge de bonnes informations.
#1 30-08-2008 10:37:09
- patkban
- Habitué WP
- Date d'inscription: 31-03-2008
- Messages: 62
[Résolu] Prb avec fichier header.php
Bonjour,
Ma configuration WP actuelle2.6
- Version de WordPress :
- Thème utilisé :
- Plugins en place :
- Nom de l'hebergeur : Amen
- Adresse du site : www.info-tele.fr
Problème(s) rencontré(s) :
Je viens de mettre en ligne mon site www.info-tele.fr
Tout fonctionnait jusqu'à ce que j'édite le fichier header.php pour installer une bannière 468X60.
J'ai certainement dû effectuer une mauvaise manipulation et mon site est en vrac.
Est-ce que quelqu'un peut m'aider et me dire ce qui "cloche" dans ce fichier. (je pense que c'est dans la barre de navigation ou recherche)
Merci pour votre aide
Code:
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head profile="http://gmpg.org/xfn/11">
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
- <meta name="distribution" content="global" />
- <meta name="robots" content="follow, all" />
- <meta name="language" content="en, sv" />
- <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
- <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
- <!-- leave this for stats please -->
- <link rel="Shortcut Icon" href="<?php echo get_settings('home'); ?>/wp-content/themes/info-tele/images/favicon.ico" type="image/x-icon" />
- <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
- <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
- <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
- <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
- <?php wp_get_archives('type=monthly&format=link'); ?>
- <?php wp_head(); ?>
- <style type="text/css" media="screen"><!-- @import url( <?php bloginfo('stylesheet_url'); ?> ); --></style>
- <script src="<?php bloginfo('template_url'); ?>/js/tabs.js" type="text/javascript"></script>
- <script src="<?php bloginfo('template_url'); ?>/js/topmenudynamic.js" type="text/javascript"></script>
- <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-1.2.1.pack.js"></script>
- <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jcycle.js"></script>
- <script type="text/javascript">
- $.fn.cycle.defaults.timeout = 9000;
- $(function() {
- $("#featuredpost").cycle({
- fx: "slideX",
- speed: "fast",
- timeout: 7000,
- pause: 2,
- next: "#next2",
- prev: "#prev2"
- });
- });
- </script>
- <script type="text/javascript"><!--//--><![CDATA[//><!--
- sfHover = function() {
- if (!document.getElementsByTagName) return false;
- var sfEls = document.getElementById("nav").getElementsByTagName("li");
- // if you only have one main menu - delete the line below //
- var sfEls1 = document.getElementById("subnav").getElementsByTagName("li");
- //
- for (var i=0; i<sfEls.length; i++) {
- sfEls[i].onmouseover=function() {
- this.className+=" sfhover";
- }
- sfEls[i].onmouseout=function() {
- this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
- }
- }
- // if you only have one main menu - delete the "for" loop below //
- for (var i=0; i<sfEls1.length; i++) {
- sfEls1[i].onmouseover=function() {
- this.className+=" sfhover1";
- }
- sfEls1[i].onmouseout=function() {
- this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
- }
- }
- //
- }
- if (window.attachEvent) window.attachEvent("onload", sfHover);
- //--><!]]></script>
- </head>
- <body>
- <div id="wrap">
- <div id="topnavbar">
- <div class="topnavbarleft">
- <p><script src="<?php bloginfo('template_url'); ?>/javascript/date.js" type="text/javascript"></script></p>
- </div>
- <div class="topnavbarright">
- <p><a href="<?php bloginfo('rss_url'); ?>"><img style="vertical-align:middle" src="<?php bloginfo('template_url'); ?>/images/rss.gif" alt="Abonnez-vous <?php bloginfo('name'); ?>" /></a><a href="<?php bloginfo('rss_url'); ?>">Articles</a><a href="<?php bloginfo('comments_rss2_url'); ?>"><img style="vertical-align:middle;margin-left:10px;" src="<?php bloginfo('template_url'); ?>/images/rss1.gif" alt="Abonnez-vous <?php bloginfo('name'); ?>" /></a><a href="<?php bloginfo('comments_rss2_url'); ?>">Commentaires</a></p>
- </div>
- </div>
- <div id="header">
- <div class="headerleft">
- <a href="<?php echo get_settings('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="" /></a>
- </div>
- <div class="headerright">
- </div>
- <div id="navbar">
- <div id="navbarleft">
- <ul id="nav">
- <li><a href="<?php echo get_settings('home'); ?>">Accueil</a></li>
- <?php wp_list_categories('sort_column=name&title_li=&depth=2&exclude=73'); ?>
- </ul>
- </div>
- <div id="navbarright">
- <form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
- <input type="text" value="Votre recherche..." name="s" id="s" onfocus="if (this.value == 'Search this 
Hors ligne
#2 30-08-2008 11:25:41
- patkban
- Habitué WP
- Date d'inscription: 31-03-2008
- Messages: 62
Re: [Résolu] Prb avec fichier header.php
En fait, je pense que j'ai effacé par mégarde la fin du code.
Quelqu'un a-t-il une idée pour m'aider ?
Hors ligne
#3 30-08-2008 12:05:14
Re: [Résolu] Prb avec fichier header.php
bonjour,
Code:
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head profile="http://gmpg.org/xfn/11">
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
- <meta name="distribution" content="global" />
- <meta name="robots" content="follow, all" />
- <meta name="language" content="en, sv" />
- <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
- <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
- <!-- leave this for stats please -->
- <link rel="Shortcut Icon" href="<?php echo get_settings('home'); ?>/wp-content/themes/info-tele/images/favicon.ico" type="image/x-icon" />
- <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
- <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
- <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
- <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
- <?php wp_get_archives('type=monthly&format=link'); ?>
- <?php wp_head(); ?>
- <style type="text/css" media="screen"><!-- @import url( <?php bloginfo('stylesheet_url'); ?> ); --></style>
- <script src="<?php bloginfo('template_url'); ?>/js/tabs.js" type="text/javascript"></script>
- <script src="<?php bloginfo('template_url'); ?>/js/topmenudynamic.js" type="text/javascript"></script>
- <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-1.2.1.pack.js"></script>
- <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jcycle.js"></script>
- <script type="text/javascript">
- $.fn.cycle.defaults.timeout = 9000;
- $(function() {
- $("#featuredpost").cycle({
- fx: "slideX",
- speed: "fast",
- timeout: 7000,
- pause: 2,
- next: "#next2",
- prev: "#prev2"
- });
- });
- </script>
- <script type="text/javascript"><!--//--><![CDATA[//><!--
- sfHover = function() {
- if (!document.getElementsByTagName) return false;
- var sfEls = document.getElementById("nav").getElementsByTagName("li");
- // if you only have one main menu - delete the line below //
- var sfEls1 = document.getElementById("subnav").getElementsByTagName("li");
- //
- for (var i=0; i<sfEls.length; i++) {
- sfEls[i].onmouseover=function() {
- this.className+=" sfhover";
- }
- sfEls[i].onmouseout=function() {
- this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
- }
- }
- // if you only have one main menu - delete the "for" loop below //
- for (var i=0; i<sfEls1.length; i++) {
- sfEls1[i].onmouseover=function() {
- this.className+=" sfhover1";
- }
- sfEls1[i].onmouseout=function() {
- this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
- }
- }
- //
- }
- if (window.attachEvent) window.attachEvent("onload", sfHover);
- //--><!]]></script>
- </head>
- <body>
- <div id="wrap">
- <div id="topnavbar">
- <div class="topnavbarleft">
- <p><script src="<?php bloginfo('template_url'); ?>/javascript/date.js" type="text/javascript"></script></p>
- </div>
- <div class="topnavbarright">
- <p><a href="<?php bloginfo('rss_url'); ?>"><img style="vertical-align:middle" src="<?php bloginfo('template_url'); ?>/images/rss.gif" alt="Abonnez-vous <?php bloginfo('name'); ?>" /></a><a href="<?php bloginfo('rss_url'); ?>">Articles</a><a href="<?php bloginfo('comments_rss2_url'); ?>"><img style="vertical-align:middle;margin-left:10px;" src="<?php bloginfo('template_url'); ?>/images/rss1.gif" alt="Abonnez-vous <?php bloginfo('name'); ?>" /></a><a href="<?php bloginfo('comments_rss2_url'); ?>">Commentaires</a></p>
- </div>
- </div>
- <div id="header">
- <div class="headerleft">
- <a href="<?php echo get_settings('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="" /></a>
- </div>
- <div class="headerright">
- </div>
- <div id="navbar">
- <div id="navbarleft">
- <ul id="nav">
- <li><a href="<?php echo get_settings('home'); ?>">Accueil</a></li>
- <?php wp_list_categories('sort_column=name&title_li=&depth=2&exclude=73'); ?>
- </ul>
- </div>
- <div id="navbarright">
- <form id="searchform" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
- <input type="text" value="Votre recherche..." name="s" id="s" onfocus="if (this.value=='Votre recherche...') this.value=''" onblur="if (this.value=='') this.value='Votre recherche...'" />
- </div>
essaye avec ça
++
Hors ligne
#4 30-08-2008 14:28:56
- patkban
- Habitué WP
- Date d'inscription: 31-03-2008
- Messages: 62
Re: [Résolu] Prb avec fichier header.php
Slt,
Merci pour ton coup de main.
Je pense que tu n'as ajouté du code qu'à la fin du fichier.
Mon thème est encore décalé (cf www.info-tele.fr)
Peut-être faut-il ajouter du code pour la bannière pub (468X60) à cet endroit ?
<div class="headerleft">
<a href="<?php echo get_settings('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" alt="" /></a>
</div>
<div class="headerright">
</div>
Hors ligne
#5 30-08-2008 14:44:55
- patkban
- Habitué WP
- Date d'inscription: 31-03-2008
- Messages: 62
Re: [Résolu] Prb avec fichier header.php
Quelque chose décale toute ma mise en page...
Comment faire pour y remédier, tout fonctionnait bien jusqu'à ce que je tente d'installer une bannière de pub dans le header.
J'ai du faire une fausse manip., mais je ne vois pas où.
Regardez ce qui se passe à cette adresse :
www.info-tele.com
Merci pour votre aide
Hors ligne
#6 31-08-2008 13:33:49
Re: [Résolu] Prb avec fichier header.php
salut
chez moi tout est nikel pour les deux sites je ne vois aucun décalage !
tu utilises quel navigateur?
Hors ligne
#7 31-08-2008 14:52:00
- patkban
- Habitué WP
- Date d'inscription: 31-03-2008
- Messages: 62
Re: [Résolu] Prb avec fichier header.php
2 sites ? Je ne comprends pas.
Mais effectivement, tout est à peu près rentré dans l'ordre.
Merci pour ton aide.
Je serai content de connaitre ton avis sur ce site et surtout ce qu'il faut améliorer.
A+
Hors ligne
#8 31-08-2008 16:39:38
- Lumière de Lune
- Not a plastic girl

- Lieu: Allemagne - Maroc
- Date d'inscription: 15-08-2007
- Messages: 2695
- Site web
Re: [Résolu] Prb avec fichier header.php
.fr et.com ce sont deux sites différents
Voyage au Maroc
Photos et web au Maroc
... tout ça sous WordPress, bien sûr !
Avez-vous lu les Dix commandements du débuggueur de blog ?
Hors ligne
#9 31-08-2008 16:48:57
- patkban
- Habitué WP
- Date d'inscription: 31-03-2008
- Messages: 62
Re: [Résolu] Prb avec fichier header.php
oui, le mien s'appelle www.info-tele.fr
question : comment intégrer ce code dans ma sidebar :
<script src="http://www.gmodules.com/ig/ifr?url=http://www.programme-television.org/google/programme-tv.xml&up_p=s&synd=open&w=320&h=220&title=Programme+TV&border=%23ffffff%7C0px%2C1px+solid+%23ff9977%7C0px%2C1px+solid+%23ffddcc%7C0px%2C1px+solid+%23ff9977%7C0px%2C1px+solid+%23ffddcc%7C0px%2C1px+solid+%23ff9977&output=js"></script>
Merci
Hors ligne
#10 01-09-2008 05:10:18
Re: [Résolu] Prb avec fichier header.php
oui, le mien s'appelle www.info-tele.fr
oui mais tu nous a donné deux adresses dans ton post, c'est pour ça j'ai dit les 2 sites!
bref
pour insérer ton code ben c'est simple: tu ouvre le fichier sidebar.php de ton thème et tu le met a l'endroit voulu , si tu veux plus de détails , donne nous plus de détails ,ton sidebar.php et exactement ou tu veux le mettre (avant et après quoi)
Hors ligne
#11 01-09-2008 05:57:45
- patkban
- Habitué WP
- Date d'inscription: 31-03-2008
- Messages: 62
Re: [Résolu] Prb avec fichier header.php
Bonjour,
Tout est ok maintenant. Merci pour votre aide.
Hors ligne