Having trouble adding onclick Javascript code
-
Hi,
I’m trying to add some code to my responsive Theme so that when someone clicks on the download button it’s tracked by Google Analytics. This is the code that I put in the editor /echo '<a href="http://www.videoto.org">Visit Products Page</a> '"$options['cta_url'].'" class="blue button">'; echo $options['cta_text']; echo '';but now when I go to my site, I see this error message
Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/content/65/9642965/html/wp-content/themes/responsive/home.php on line 79.
Not quite sure what this means or where my error is. If it helps the webste is http://www.videoto.org and I’m using the Responsive theme.
Thanks
The topic ‘Having trouble adding onclick Javascript code’ is closed to new replies.