• When I go to my blog page I’m getting:

    Parse error: syntax error, unexpected T_STRING in /home/sites/shraco.com/public_html/naturalgardening/blog/wp-content/themes
    /default/header.php on line 13

    I can’t find anything in the header.php file. I disabled the latest plugin and took out some linked text in my last post. Those are the only two things I added recently. It worked fine with the plugin activated last night but disabled it to see if that was the problem. It wasn’t.

    Please help

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>

    <head profile=”http://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <?php
    global $wp_query, $post;
    $meta_description=get_post_meta($post->ID, “html_meta_description”,true);
    $meta_keywords=get_post_meta($post->ID, “html_meta_keywords”, true);
    $meta_title=get_post_meta($post->ID, “html_meta_title”, true);

    if($meta_keywords)
    print ‘<meta name=”Keywords” content=”‘.$meta_keywords.’” />’;
    if($meta_description)
    print ‘<meta name=”Description” content=”‘.$meta_description.’” />’;
    ?>

    <?
    if($meta_title)
    print “<title>$meta_title</title>”;
    else
    {
    ?>
    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>
    <?
    }
    ?>
    <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’); ?>” />

    <style type=”text/css” media=”screen”>

    <?php
    // Checks to see whether it needs a sidebar or not
    if ( !empty($withcomments) && !is_single() ) {
    ?>
    #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbg-<?php bloginfo(‘text_direction’); ?>.jpg”) repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    #page { background: url(“<?php bloginfo(‘stylesheet_directory’); ?>/images/kubrickbgwide.jpg”) repeat-y top; border: none; }
    <?php } ?>

    </style>

    <?php wp_head(); ?>
    </head>
    <body>
    <div id=”page”>

    <div id=”header”>
    <div id=”headerimg”>
    <h1>/”><?php bloginfo(‘name’); ?></h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>
    </div>
    </div>
    <hr />

Viewing 2 replies - 1 through 2 (of 2 total)
  • on this line fifth from the bottom:
    <h1>/"><?php bloginfo('name'); ?></h1>
    you need to take out /">. Looks like it was left over when you modified the default theme and deleted
    <a href="<?php echo get_settings('home'); ?>/">

    I’m not sure that’s it, from a quick look everything else looks pretty good.

    Thread Starter aege

    (@aege)

    Thank you. I don’t know what made that part of the code disappear. I ended up replacing the whole file from the one on my hd to get all the code back in there. But wouldn’t have known it was missing unless you pointed it out.

    Thanks again.

    Alexis

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Parse error: syntax error, unexpected T_STRING in /home/sites/mysite/public_’ is closed to new replies.