Support » How-To and Troubleshooting » adding title to php page

adding title to php page

  • Hi , I’m into blogging coming from a straight html editor and would like to know how I put a title in my index.php page , thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m not entirely certain I understand your question, but I’ll try to respond.

    It will depend upon which template you’re using for your WP blog, but for the most part, your title is automatically placed into your page based upon the name you gave your blog when you ran the installer.

    Of course you can always edit the index.php file of the template you’ve selected to make changes to how and where the title of your blog is diplayed.

    If you’ve only done straight html before, then php may be a touch confusing initially. If this is the case, then it might be best to just go with an existing template and poke around in its files to get a feel for how things fit together.

    The title I’d like to change is from this <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title> to <title> title that I’d like to use</title> , do I place the title I’d like to use any special place , thanks

    You could just change it, of course. But there is a problem you may not be aware of: this will then become the title of each and every page! The PHP is there to adapt the title to what is actually showing.

    If you don’t like the current title, you could change it in the options screen of the admin interface, from where it is picked up by the PHP.



Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding title to php page’ is closed to new replies.