syntax error, unexpected ‘<' when trying to make header clickable
-
Hi,
I’m trying to make the header image clickable. I also added the code “echo” to the function to make sure that the function started.
But after activating the snippet, I get this message:The code snippet you are trying to save produced a fatal error on line 5:
syntax error, unexpected ‘<‘It is clear that this line is problematic:
<div id="masthead" style="cursor: pointer;" onclick="location.href='http://knihazivota.cz'"></div>
But no matter what I do, I always get an error. This code should be correct (it is copied from a tutorial).
Do you have any idea what I’m doing wrong?
thank you for answerThe page I need help with: [log in to see the link]
- The topic ‘syntax error, unexpected ‘<' when trying to make header clickable’ is closed to new replies.