WordPress.org

Ready to get started?Download WordPress

Forums

adding title to php page (4 posts)

  1. hughy1
    Member
    Posted 8 years ago #

    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

  2. dherren
    Member
    Posted 8 years ago #

    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.

  3. hughy1
    Member
    Posted 8 years ago #

    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

  4. Karel
    Member
    Posted 8 years ago #

    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.

    Regards,

    Karel

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.