Nasty –> appearing at top of page!
-
Hi
I am trying to debug a wordpress. At the very top of the screen there is a “–>” appearing. In the header.php are these lines:
<head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php if (is_home () ) { bloginfo('name'); echo " - "; bloginfo('description'); } elseif (is_category() ) {single_cat_title(); echo " - "; bloginfo('name'); } elseif (is_single() || is_page() ) {single_post_title(); echo " - "; bloginfo('name'); } elseif (is_search() ) {bloginfo('name'); echo " search results: "; echo wp_specialchars($s); } else { wp_title('',true); }?></title> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <meta name="robots" content="follow, all" /> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> <!--[if IE 6]> <script type= ...
If find that if I comment out the wp_head then the error disappears. So its something to do with that function (I guess).
I discovered taht when I went into wp-includes/general-template.php. I found
function wp_head() { do_action('wp_head'); }
Which didn’t help a lot becuase its pointing me to look somewhere else and I can’t find it!
Can somebody please tell me where I could look next to – I think that this function adds all sort of stuff into the header.
Many thanks
Edward
If you want you can see it at https://www.h2o-networks.co.uk/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Nasty –> appearing at top of page!’ is closed to new replies.