Adding Simple Code To functions.php
-
Hi I’m using twenty eleven and am trying to add a small function script to my child functions.php I get the error:
Parse error: syntax error, unexpected ‘(‘, expecting T_VARIABLE or ‘$’ in /home/familyte/public_html/addons/surfacedealscouk/wp-content/themes/myTheme/functions.php on line 10 (both the fucntion codes show as errors in dreamweaver
The code I’m using is:
<?php
/**
*Scroller
*/$(function() {
$(“.scrollable”).scrollable();
});
?>I got the code from a jquery site for making a simple image scroller – https://jquerytools.org/demos/scrollable/index.html
Apologies if this is a bit of a newbie question. Any help much appreciated (I’ve removed the code from the site for the moment to do other work on the site). Earl
- The topic ‘Adding Simple Code To functions.php’ is closed to new replies.