WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. maxelcat
    Member
    Posted 1 year ago #

    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/

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year 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
    Member
    Posted 1 year 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

    Thanks

  5. maxelcat
    Member
    Posted 1 year ago #

    As it happens I have found it now chaps!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags