Comment faire des balises personnalisés pour chaque page ? <span style="font-size: 16px;">(<a href="https://wpfr.net/mon-compte"">Créer un compte</a>)</span> </h1> <div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"> <a href="https://wpfr.net/" class="bbp-breadcrumb-home">Accueil</a> <span class="bbp-breadcrumb-sep">›</span> <a href="https://wpfr.net/support/" class="bbp-breadcrumb-root">Forums</a> <span class="bbp-breadcrumb-sep">›</span> <a href="https://wpfr.net/support/forum/utilisation-specifique-de-wordpress/" class="bbp-breadcrumb-forum">Utilisation spécifique de WordPress</a> <span class="bbp-breadcrumb-sep">›</span> <span class="bbp-breadcrumb-current">Comment faire des balises <Title> personnalisés pour chaque page ?</span> </div> </div> </div> </div> </header> <div class="entry-content"> <div class="container"> <div id="bbpress-forums" class="bbpress-wrapper"> <ul id="topic-info"> <li class="topic-resolved">Statut : non résolu</li> </ul> <div class="bbp-template-notice info"><ul><li class="bbp-topic-description">Ce sujet contient 11 réponses, 5 participants et a été mis à jour pour la dernière fois par <a href="https://wpfr.net/support/utilisateurs/sergeliatko/" title="Voir le profil de sergeliatko" class="bbp-author-link"><span class="bbp-author-avatar"><img alt='' src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2014%2014'%3E%3C/svg%3E" data-lazy-srcset='https://secure.gravatar.com/avatar/07cee45f00cb999d1aea56706b1b0bc9?s=28&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwapmas-wapuu-32.png&r=g 2x' class='avatar avatar-14 photo' height='14' width='14' data-lazy-src="https://secure.gravatar.com/avatar/07cee45f00cb999d1aea56706b1b0bc9?s=14&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwapmas-wapuu-32.png&r=g" /><noscript><img alt='' src='https://secure.gravatar.com/avatar/07cee45f00cb999d1aea56706b1b0bc9?s=14&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwapmas-wapuu-32.png&r=g' srcset='https://secure.gravatar.com/avatar/07cee45f00cb999d1aea56706b1b0bc9?s=28&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwapmas-wapuu-32.png&r=g 2x' class='avatar avatar-14 photo' height='14' width='14' /></noscript></span><span class="bbp-author-name">sergeliatko</span></a>, le <a href="https://wpfr.net/support/sujet/comment-faire-des-balises-personnalises-pour-chaque-page/#post-577796" title="Répondre à : Comment faire des balises <Title> personnalisés pour chaque page ?">il y a 12 années et 1 mois</a>.</li></ul></div> <div class="bbp-pagination"> <div class="bbp-pagination-count">12 sujets de 1 à 12 (sur un total de 12)</div> <div class="bbp-pagination-links"></div> </div> <ul id="topic-448278-replies" class="forums bbp-replies"> <li class="bbp-header"> <div class="bbp-reply-author">Auteur</div><!-- .bbp-reply-author --> <div class="bbp-reply-content">Messages</div><!-- .bbp-reply-content --> </li><!-- .bbp-header --> <li class="bbp-body"> <div id="post-448278" class="bbp-reply-header"> <div class="bbp-meta"> <span class="bbp-reply-post-date">3 août 2006 à 20 h 54 min</span> <a href="https://wpfr.net/support/sujet/comment-faire-des-balises-personnalises-pour-chaque-page/#post-448278" class="bbp-reply-permalink">#448278</a> <span class="bbp-admin-links"></span> </div><!-- .bbp-meta --> </div><!-- #post-448278 --> <div class="loop-item-0 user-id-107105 bbp-parent-forum-446435 bbp-parent-topic-446435 bbp-reply-position-1 odd post-448278 topic type-topic status-publish hentry"> <div class="bbp-reply-author"> <a href="https://wpfr.net/support/utilisateurs/imported_ramenian/" title="Voir le profil de imported_ramenian" class="bbp-author-link"><span class="bbp-author-avatar"><img alt='' src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2080%2080'%3E%3C/svg%3E" data-lazy-srcset='https://secure.gravatar.com/avatar/027af6819fe358527b25c5681bab35eb?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwapuu-sleepy-wordcamp-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' data-lazy-src="https://secure.gravatar.com/avatar/027af6819fe358527b25c5681bab35eb?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwapuu-sleepy-wordcamp-128.png&r=g" /><noscript><img alt='' src='https://secure.gravatar.com/avatar/027af6819fe358527b25c5681bab35eb?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwapuu-sleepy-wordcamp-128.png&r=g' srcset='https://secure.gravatar.com/avatar/027af6819fe358527b25c5681bab35eb?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwapuu-sleepy-wordcamp-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' /></noscript></span><span class="bbp-author-name">imported_ramenian</span></a><div class="bbp-author-role">Membre</div> <div class="bbp-author-rank">Initié WordPress</div><div class="bbp-author-count">39 contributions</div> </div><!-- .bbp-reply-author --> <div class="bbp-reply-content"> <p>Bonjour à tous,</p> <p>j’ai enfin fini la structure du site de ma mère (<a href="http://www.pommier-sauvage.net/" rel="nofollow">http://www.pommier-sauvage.net/</a>) et j’ai une question (le site tourne sous WordPress 2.0.4, hébergé sur l’offre initial 1&1).</p> <p>Le site se compose de 7 pages ou je suis en train de mettre le contenu. Un travail plus approfondie se fera sur le contenu pour le référencement. Cependant, comment mettre une balise title différente à chaque page, sachant que je ne souhaite pas que la balise title reprenne le titre de la page ?<br /> Pour le moment j’ai mis un texte en dur sur la page d’accueil mais ca se repercute partout.<br /> Comment faire ?</p> <p>Merci</p> </div><!-- .bbp-reply-content --> </div><!-- .reply --> <div id="post-577786" class="bbp-reply-header"> <div class="bbp-meta"> <span class="bbp-reply-post-date">3 août 2006 à 21 h 34 min</span> <a href="https://wpfr.net/support/sujet/comment-faire-des-balises-personnalises-pour-chaque-page/#post-577786" class="bbp-reply-permalink">#577786</a> <span class="bbp-admin-links"></span> </div><!-- .bbp-meta --> </div><!-- #post-577786 --> <div class="loop-item-1 user-id-106496 bbp-parent-forum-446435 bbp-parent-topic-448278 bbp-reply-position-2 even post-577786 reply type-reply status-publish hentry"> <div class="bbp-reply-author"> <a href="https://wpfr.net/support/utilisateurs/amo/" title="Voir le profil de AmO" class="bbp-author-link"><span class="bbp-author-avatar"><img alt='' src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2080%2080'%3E%3C/svg%3E" data-lazy-srcset='https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' data-lazy-src="https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g" /><noscript><img alt='' src='https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g' srcset='https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' /></noscript></span><span class="bbp-author-name">AmO</span></a><div class="bbp-author-role">Participant</div> <div class="bbp-author-rank">Maître WordPress</div><div class="bbp-author-count">4449 contributions</div> </div><!-- .bbp-reply-author --> <div class="bbp-reply-content"> <p>2 solutions…<br /> Soit tu créer 7 squellettes de pages et tu les attribue selon tes pages.</p> <p>Soit tu fais un peu de PHP “conditionnel”</p> <div class="code-embed-wrapper"> <pre class="language-php code-embed-pre line-numbers" data-start="1" data-line-offset="0"><code class="language-php code-embed-code"><title><?php if (is_page(3)) { echo "Titre Page 3" } else if (is_page(5)) { echo "Titre Page 6" }</title></code></pre> <div class="code-embed-infos"> </div> </p></div> <p>ou is_page(i), i étant le ID de la page 🙂<br /> Au choix 🙂</p> </div><!-- .bbp-reply-content --> </div><!-- .reply --> <div id="post-577787" class="bbp-reply-header"> <div class="bbp-meta"> <span class="bbp-reply-post-date">3 août 2006 à 21 h 41 min</span> <a href="https://wpfr.net/support/sujet/comment-faire-des-balises-personnalises-pour-chaque-page/#post-577787" class="bbp-reply-permalink">#577787</a> <span class="bbp-admin-links"></span> </div><!-- .bbp-meta --> </div><!-- #post-577787 --> <div class="loop-item-2 user-id-11 bbp-parent-forum-446435 bbp-parent-topic-448278 bbp-reply-position-3 odd post-577787 reply type-reply status-publish hentry"> <div class="bbp-reply-author"> <a href="https://wpfr.net/support/utilisateurs/ramenian/" title="Voir le profil de ramenian" class="bbp-author-link"><span class="bbp-author-avatar"><img alt='' src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2080%2080'%3E%3C/svg%3E" data-lazy-srcset='https://secure.gravatar.com/avatar/edebddf55c6be0ad07e0398f486c48cb?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Ffes-wapuu-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' data-lazy-src="https://secure.gravatar.com/avatar/edebddf55c6be0ad07e0398f486c48cb?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Ffes-wapuu-128.png&r=g" /><noscript><img alt='' src='https://secure.gravatar.com/avatar/edebddf55c6be0ad07e0398f486c48cb?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Ffes-wapuu-128.png&r=g' srcset='https://secure.gravatar.com/avatar/edebddf55c6be0ad07e0398f486c48cb?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Ffes-wapuu-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' /></noscript></span><span class="bbp-author-name">ramenian</span></a><div class="bbp-author-role">Membre</div> <div class="bbp-author-rank">Chevalier WordPress</div><div class="bbp-author-count">167 contributions</div> </div><!-- .bbp-reply-author --> <div class="bbp-reply-content"> <p>Le php conditionnel m’intéresse davantage. Plus exactement ca donnerait quoi dans mon cas ? je récupère quoi à la place du (is_page(3)) ?</p> <p>Merci</p> </div><!-- .bbp-reply-content --> </div><!-- .reply --> <div id="post-577788" class="bbp-reply-header"> <div class="bbp-meta"> <span class="bbp-reply-post-date">3 août 2006 à 22 h 26 min</span> <a href="https://wpfr.net/support/sujet/comment-faire-des-balises-personnalises-pour-chaque-page/#post-577788" class="bbp-reply-permalink">#577788</a> <span class="bbp-admin-links"></span> </div><!-- .bbp-meta --> </div><!-- #post-577788 --> <div class="loop-item-3 user-id-106496 bbp-parent-forum-446435 bbp-parent-topic-448278 bbp-reply-position-4 even post-577788 reply type-reply status-publish hentry"> <div class="bbp-reply-author"> <a href="https://wpfr.net/support/utilisateurs/amo/" title="Voir le profil de AmO" class="bbp-author-link"><span class="bbp-author-avatar"><img alt='' src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2080%2080'%3E%3C/svg%3E" data-lazy-srcset='https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' data-lazy-src="https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g" /><noscript><img alt='' src='https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g' srcset='https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' /></noscript></span><span class="bbp-author-name">AmO</span></a><div class="bbp-author-role">Participant</div> <div class="bbp-author-rank">Maître WordPress</div><div class="bbp-author-count">4449 contributions</div> </div><!-- .bbp-reply-author --> <div class="bbp-reply-content"> <p>En fait… le is_page permet de controler le id de la page que tu visites…</p> <p>Si tu met is_page(3), et que tu visite la page 3, la condition est rempli, elle réalise donc l’action lié… le cas présent écrire “Titre Page 3”</p> <div class="code-embed-wrapper"> <pre class="language-php code-embed-pre line-numbers" data-start="1" data-line-offset="0"><code class="language-php code-embed-code"><title> </title></code></pre> <div class="code-embed-infos"> </div> </p></div> <p>C’est plus clair ?</p> </div><!-- .bbp-reply-content --> </div><!-- .reply --> <div id="post-577789" class="bbp-reply-header"> <div class="bbp-meta"> <span class="bbp-reply-post-date">4 août 2006 à 8 h 25 min</span> <a href="https://wpfr.net/support/sujet/comment-faire-des-balises-personnalises-pour-chaque-page/#post-577789" class="bbp-reply-permalink">#577789</a> <span class="bbp-admin-links"></span> </div><!-- .bbp-meta --> </div><!-- #post-577789 --> <div class="loop-item-4 user-id-11 bbp-parent-forum-446435 bbp-parent-topic-448278 bbp-reply-position-5 odd post-577789 reply type-reply status-publish hentry"> <div class="bbp-reply-author"> <a href="https://wpfr.net/support/utilisateurs/ramenian/" title="Voir le profil de ramenian" class="bbp-author-link"><span class="bbp-author-avatar"><img alt='' src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2080%2080'%3E%3C/svg%3E" data-lazy-srcset='https://secure.gravatar.com/avatar/edebddf55c6be0ad07e0398f486c48cb?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Ffes-wapuu-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' data-lazy-src="https://secure.gravatar.com/avatar/edebddf55c6be0ad07e0398f486c48cb?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Ffes-wapuu-128.png&r=g" /><noscript><img alt='' src='https://secure.gravatar.com/avatar/edebddf55c6be0ad07e0398f486c48cb?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Ffes-wapuu-128.png&r=g' srcset='https://secure.gravatar.com/avatar/edebddf55c6be0ad07e0398f486c48cb?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Ffes-wapuu-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' /></noscript></span><span class="bbp-author-name">ramenian</span></a><div class="bbp-author-role">Membre</div> <div class="bbp-author-rank">Chevalier WordPress</div><div class="bbp-author-count">167 contributions</div> </div><!-- .bbp-reply-author --> <div class="bbp-reply-content"> <p>C’est beaucoup plus clair mais comme j’ai appliqué l’url rewriting sur mes pages, je ne sais plus quel est le numéro de mes pages. Exemples :</p> <p>Pour les pages que j’ai crée j’ai l’id et le Titre de la page (c’est ce que je vois dans “Gérer les pages”)<br /> Exemples<br /> Id : 2<br /> Titre : A propos<br /> Liens de la page :<a href="http://www.pommier-sauvage.net/a-propos/" rel="nofollow">http://www.pommier-sauvage.net/a-propos/</a></p> <p>Donc à partir de ça, je met quoi dans ton code php et ou ? 🙂</p> <p>Merciiiii <img src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E" width="" height="" alt="=)" title="=)" class="bbcode_smiley" data-lazy-src="smileys/smile.gif" /><noscript><img src="smileys/smile.gif" width="" height="" alt="=)" title="=)" class="bbcode_smiley" /></noscript></p> </div><!-- .bbp-reply-content --> </div><!-- .reply --> <div id="post-577790" class="bbp-reply-header"> <div class="bbp-meta"> <span class="bbp-reply-post-date">4 août 2006 à 8 h 50 min</span> <a href="https://wpfr.net/support/sujet/comment-faire-des-balises-personnalises-pour-chaque-page/#post-577790" class="bbp-reply-permalink">#577790</a> <span class="bbp-admin-links"></span> </div><!-- .bbp-meta --> </div><!-- #post-577790 --> <div class="loop-item-5 user-id-106496 bbp-parent-forum-446435 bbp-parent-topic-448278 bbp-reply-position-6 even post-577790 reply type-reply status-publish hentry"> <div class="bbp-reply-author"> <a href="https://wpfr.net/support/utilisateurs/amo/" title="Voir le profil de AmO" class="bbp-author-link"><span class="bbp-author-avatar"><img alt='' src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2080%2080'%3E%3C/svg%3E" data-lazy-srcset='https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' data-lazy-src="https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g" /><noscript><img alt='' src='https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=80&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g' srcset='https://secure.gravatar.com/avatar/919912e7f2a388fac3619e7f6c11f353?s=160&d=https%3A%2F%2Fwpfr.net%2Fwp-content%2Fplugins%2Fwapuuvatar%2Fdist%2Fwct2013-128.png&r=g 2x' class='avatar avatar-80 photo' height='80' width='80' /></noscript></span><span class="bbp-author-name">AmO</span></a><div class="bbp-author-role">Participant</div> <div class="bbp-author-rank">Maître WordPress</div><div class="bbp-author-count">4449 contributions</div> </div><!-- .bbp-reply-author --> <div class="bbp-reply-content"> <p>Les permaliens ne sont pas un problème pour le test, l’id tu le trouves dans gérer les pages effectivement 😉</p> <p>Tu met ton code php dans le fichier header.php<br /> dans la section [c] [/c]</p> <p>Et tu commente le [c]<title>[/c] existant (si il y a)

#577791
ramenian
Membre
Chevalier WordPress
167 contributions

Donc par exemple, ça donnerait pour moi :

<?php
if (is_http://www.pommier-sauvage.net/A-propos) // Si c’est la page A propos
{ echo “le titre de la balise title de la page A propos” } // Condition Remplie, écrire Titre Page A propos..

C’est ca ou pas ? 🙂

#577792
Qwindoo
Modérateur
Maître WordPress
2862 contributions

Nooooon ! :D

Mettons que ta page A Propos ait l’id 2 :

<title>

</title>

Compris ? ^^

#577793
AmO
Participant
Maître WordPress
4449 contributions

Merci MS-DOS_1991 :happy:

#577794
Qwindoo
Modérateur
Maître WordPress
2862 contributions

lol en s’y mettant à deux on va finir par y arriver :D

#577795
ramenian
Membre
Chevalier WordPress
167 contributions

Encore merci ça marche 🙂

#577796
sergeliatko
Participant
Initié WordPress
20 contributions

Bonjour,
j’ai eu la même question et la réponse sur Protuts.net

on à laissé l’exemple du code sur le forum avec Rainbow, peut être çà vas aidé ?

http://protuts.net/forum/topic/optimiser-la-balise-lttitlegt

12 sujets de 1 à 12 (sur un total de 12)
  • Le forum ‘Utilisation spécifique de WordPress’ est fermé à de nouveaux sujets et réponses.