Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

XHTML Validity Problem (Should be super-easy) WordPress

  • SOLVED

LINK: http://themeforward.com/demo2

Getting this error as a result of my title tag:
Line 144, Column 7: document type does not allow element "title" here

Want to use the PHP in the title... how do I make this valid?

<title>
<?php wp_title('|',true,'right'); ?>
<?php bloginfo('name'); ?>
</title>
<meta http-equiv="content-type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
<meta name="description" content="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" />
<meta name="keywords" content="" />

Answers (2)

2011-10-10

Jurre Hanema answers:

You've got two <title>-tags in your <head>. Of course, only one is allowed, so the second <title> triggers this error.


Lucas Wynne comments:

Brain took a holiday, thank ya sir.

2011-10-10

Luis Abarca answers:

Its because you have duplicate title tag, line 6 and 144 in your source