• 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 answer

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi @matiseli,

    Can you share that line in the context of the full snippet? It sounds like you may be using HTML in a place where it isn’t supported.

Viewing 1 replies (of 1 total)
  • The topic ‘syntax error, unexpected ‘<' when trying to make header clickable’ is closed to new replies.