I hope anyone can help me, I have been trying to add the banner in wordpress function.php file as below, but I get an error,
syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’
and I do understand why it happens, but I can’t figure out how to go around it,.
I tried replacing ‘ with ”
but while the error disappeared, the banner does not display at all..
anyone have other idea?
You’re on the right track. Shooting from the hip, I’d say that you’re trying to “nest” single quotes inside single quotes. You could try this, which is essentially having double quotes at both ends.
I got that to work with no error. But I also got no output. So something else is amiss maybe, and you’ll have to investigate the source of that code. Good luck.
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
Thanks David for quick reply! Will give it a go
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?