wordpress title tag

Discussion in 'WordPress' started by chiller4life, May 13, 2013.

  1. #1
    i want title tags to be right after the header tag in wordpress at the moment by page source is like this

    <!DOCTYPEhtml>
    <!--[if lt IE 9]>
    <html id="ie" lang="en-US" prefix="og: example.com">
    <![endif]-->
    <!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
    <html lang="en-US" prefix="og: http:example.com#">
    <!--<![endif]-->
    <head>

    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width" />
    <link rel="profile" href="www.example.com" />
    <link rel="stylesheet" type="text/css" media="all" href="www.example.com" />
    <link rel="pingback" href="www.example.com" />
    <!--[if lt IE 9]>
    <script src="www.example.com</script>
    <![endif]-->

    <!-- This site is optimized with the Yoast WordPress SEO plugin v1.4.7 - http://yoast.com/wordpress/seo/ -->
    <title>Zss Health, Exercise &amp; Muscles</title>

    <meta name="description" content="">
    </head>

    ---------------------------------------------------------------------

    what i want is to show title tag like this
    <head>
    <title>my title</title>


    can someone help me plz thank u
     
    chiller4life, May 13, 2013 IP
  2. ThreeGuineaWatch

    ThreeGuineaWatch Well-Known Member

    Messages:
    1,489
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Edit header.php and put

    <title><?php wp_title(); ?></title>

    where you want it.
     
    ThreeGuineaWatch, May 13, 2013 IP
  3. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #3
    I don't recommend putting the title (or anything non-ASCII) before the charset specification (<meta charset="UTF-8">). It may cause problems.
     
    Devtard, May 14, 2013 IP