[resolved] Nasty --> appearing at top of page! (5 posts)

  1. maxelcat
    Posted 2 years ago #


    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:

    <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() {

    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


    If you want you can see it at http://www.h2o-networks.co.uk/

  2. Andrew
    Forum moderator
    Posted 2 years ago #

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

  3. Michael
    Forum Moderator
    Posted 2 years ago #

    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.

  4. maxelcat
    Posted 2 years ago #

    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


  5. maxelcat
    Posted 2 years ago #

    As it happens I have found it now chaps!

Topic Closed

This topic has been closed to new replies.

About this Topic