ArtisteerTutorial.com

  • Learn how to create awesome sites with Artisteer!

WordPress: How to have a page with a different title than all the other pages

Lots of times in WordPress, you want to have a page with a different title or title structure than the others.

This can be done with a quick edit to your header.php file in WordPress (don’t worry if that sounds intimidating, I’ll be here to walk you through it!), where we have a bit of php code that will tell our browser to show a different title for that specific page.

In this demo site that I use for the video, it uses the default Artisteer page title structure of “page name | site name”, so keep that in mind as you follow along.

For your convenience, here’s the code that I used in the video, so that you don’t have to type it all in manually:

<?php
if(is_page(194)){
echo ‘<title>Special home page title</title>’;
} else {
echo “<title>”;
wp_title(‘|’, true, ‘right’); bloginfo(‘name’);
echo “</title>”;
}
?>

One Response to WordPress: How to have a page with a different title than all the other pages

  • Silvia says:

    Pretty nice post. I just stumbled upon your blog and whseid to say that I have really enjoyed surfing around your blog posts. After all I’ll be subscribing to your rss feed and I hope you write again soon!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Free Artisteer Video Training Course

Want to learn how to create great websites with Artisteer?

Then you MUST see this training!

It's simple, step-by-step, and will turn you into an Artisteer pro!

Sign up for free below. 

New Graphic

We respect your email privacy

Recent Comments