• Hi Guys apologies I see a lot of posts like this but I’m new and not 100% sure how to resolve this – Error message now coming up when i try to visit my site

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘,’ or ‘;’ in /home/u814584542/public_html/wp-content/themes/gt3-wp-oyster/functions.php on line 208

    Here is line 208 i have no idea what I’m supposed to be looking for as I don’t understand the code part of it all … If someone can help it would be greatly appreciated …

    echo '<div class="custom_bg img_bg" style="background-image: url('' . $bgimg_url . ''); background-color:#' . $bgcolor_hash . ';"></div>'

    Thanks – Mark

Viewing 1 replies (of 1 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Try:

    echo '<div class="custom_bg img_bg" style="background-image: url("' . $bgimg_url . '"); background-color:#' . $bgcolor_hash . ';"></div>';

    ps. please try to use backticks when inputting code; helps some to better read what may be wrong. 🙂

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error’ is closed to new replies.