WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Header Error (5 posts)

  1. ElmoJackson
    Member
    Posted 8 years ago #

    Would someone please take a look and tell me where I'm going wrong. This is for my header template. I get the following error:

    Parse error: parse error, unexpected '?' in /var/www/html/wp-content/themes/equix/header.php on line 9

    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title>
    <?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?>
    </title>
    <meta name="generator" content="WordPress" <?php bloginfo('version'); ?
    <meta name="description" content="Short Stories by Elmo Jackson. Fiction, Non-Fiction, Art, Photography and more" />
    <meta name="keywords" content="elmo jackson, short stories, fiction, non-fiction, nonfiction, rome local writers, rome, rome georgia, rome ga, rome georgia, floyd county, floyd county georgia, ezgenerator, image line software, doteasy, web hosting, website building software>" />
    <meta name="robot" content="All" />

    Thanks,

    Elmo

  2. Minna
    Member
    Posted 8 years ago #

    At least there's an error on <meta name="generator"> line. Don't know if that code is shown correctly... but it should be <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />

  3. ElmoJackson
    Member
    Posted 8 years ago #

    Okay... thanks. I edited and closed the ? with >. It seems to work okay now. About the issue you mention, well I just saw the no ending " and thought it should be closed. I'll change that back.

    Thanks,

    elmo

  4. Minna
    Member
    Posted 8 years ago #

    add the /> as well, otherwise you'll have invalid html/xhtml

  5. ElmoJackson
    Member
    Posted 8 years ago #

    Minna,

    Thanks for taking time to help me with this. I'll check the code again and make sure that ?/>. I hope that's what your talking about? The place I said I closed the ?.

    Thanks,

    Elmo

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.