Pages

Search This Blog

Change the Default Display of the Title Bar Content


The header.php file in WordPress’s default theme has a title bar that is coded like this:
  1. <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>  
Once again, you can see the « character that is highly overused in the web development industry. (Not to mention that it’s actually a left quotation mark for french text!) You can replace that character with a different one, and even change the way the page titles are displayed.
You’ll notice there’s a function called wp_title that holds 3 parameters (including the« character). The third parameter tells WordPress where to display the post title — to the left or to the right of your blog name.
You also have the option to remove the function that displays your blog’s name, and instead just manually enter a more keyword-friendly title. The blog name that displays in your Dashboard under “settings” will still display your official blog name on RSS readers.

No comments:

Post a Comment

Related Posts Plugin for Blogger...
 

Blog Archive