Support » Themes and Templates » Nasty –> appearing at top of page!

  • Resolved maxelcat

    (@maxelcat)


    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 http://www.h2o-networks.co.uk/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Andrew Nevins

    (@anevins)

    Unfortunately WordPress.org forums do not support commercial themes. Try contacting your theme’s vendors.

    Michael

    (@alchymyth)

    Forum Moderator

    caused by this line:
    <!<link rel="stylesheet" href="http://www.h2o-networks.co.uk/wp-content/themes/centita/css/fancybox.css" type="text/css" media="screen" />-->

    which seems to come from somewhere in your theme.

    if you don’t remember where you tried to comment the linking of that stylesheet in your theme,
    please contact themeforest for support with the problem.

    commercial themes are not supported by this forum.

    Thanks for you replies

    I hear what you say about commercial themes! I didn’t build this site at all, I have inherited.

    WIll approach them

    Thanks

    As it happens I have found it now chaps!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Nasty –> appearing at top of page!’ is closed to new replies.