Parse error: syntax error, unexpected T_STRING

Hi,

I tried to edit a website that was created a few years ago by a developer. This is done through wordpress.

I changed an image address in the code, and on posting got the following:

Parse error : syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /homepages/1/d191432458/htdocs/ShropshireHypnobirthing/wp-content/themes/shropshire-hypnobirthing/header.php on line 155

The change I made was on line 194 (highlighed in bold) - and the only change was to change the file from “shropshire-hypnobirthing.png” to “shropshire-hypnobirthing-new.png”

When it threw up this error, I immediately changed it back. What is confusing me is that it shows up as line 155 being the error, which was not touched:

The line that was changed:

<img src="<?php bloginfo('template_directory'); ?>/images/shropshire-hypnobirthing.png" alt="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" />

And the line that is throwing up the error (plus the line before and after):

case is_home() || is_page(‘4’):
echo “class=“home””;
break;

If anyone could shine any light on this, I’d be massively appreciative, as the whole website is currently inaccessible!

Thanks,

Tom

Seems your error is somewhere else. What is on lines 150-160 in the header file?

Eventually worked it out

echo “class=“home””;

should have been

echo “class=‘home’”;

God knows why it worked in that state previously and suddenly gave up! But anyhow, sorted. Thanks for taking a look anyhow!

Sponsor our Newsletter | Privacy Policy | Terms of Service