WordPress.org

Ready to get started?Download WordPress

Forums

cleaning title for sigle post (4 posts)

  1. xinfo
    Member
    Posted 7 years ago #

    hii

    like to know how to show the title for the blog when viewing single post , i need title to be post title only ,i get post title and blog Description

  2. TwoMotifs
    Member
    Posted 7 years ago #

    You'll need to change the title in your template file (probably header.php), and use something like:

    if (is_single()) { the_title(); } else { what you currently have }

  3. xinfo
    Member
    Posted 7 years ago #

    have updated my title some thing like this

    <title><?php wp_title(' '); ?><?php if(wp_title(' ', false)) { echo ' · '; } ?> xinfo - Online Latest Gadget Information </title>

    when i visit single post it show post title followed by home page title also i like to show only post title when viewing the single post

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags