Syntax Error with T_CONSTANT_ENCAPSED_STRING

Hi,
I am seeing following error and I am not able to figure out what is going wrong.
Appreciate if someone can help me understand what is going wrong here -

Error -
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘,’ or ‘;’

Line -
if ($slider_button_location || $custom_logo || $background_image || $background_color){ echo ‘’; }
if ($custom_logo){ echo ‘#logo a { background: url(’’.$custom_logo.’’) left center no-repeat; }’; }
if ($background_color || $background_image){
:
:
:

You are not escaping the single quotes in your echo. You are also adding unnecessary escaping and need to start with double quotes. You need to learn how to properly format your code. This single line stuff is very hard to read.

[php]<?php
if ($slider_button_location || $custom_logo || $background_image || $background_color)
{
echo ‘’;
}
if ($custom_logo)
{
echo “#logo a { background: url(’$custom_logo’) left center no-repeat; }”;
}[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service