Hi,
I was hoping wondering if someone could help me out. I'm building my first child theme which is based on the Thematic Feature Site and am trying to add the jquery plugin easySlider to my home page.
http://cssglobe.com/post/3783/jquery-plugin-easy-image-or-content-slider
I've done a ton of reading through this forum and can't get it to work. I am adding the following code to my functions file which I modified from ian's post here http://forums.themeshaper.com/topic/best-way-to-add-additional-jquery-scripts:
// Add extra javascript to the childtheme
function childtheme_scripts(){
?>
<script type='text/javascript'>
var childtheme_url = '<?php bloginfo('stylesheet_directory') ?>';
</script>
<script type='text/javascript' src='<?php bloginfo('stylesheet_directory'); ?>/js/easySlider.js'></script>
<?php
}
add_action('wp_head', 'childtheme_scripts','10');
When I add the code to my wordpress functions file I get a parse error in wordpress and it breaks my site.
Parse error: syntax error, unexpected '}' in /x/wp-content/themes/thematicfeaturesite/functions.php on line 109
I've run the code through php designer and it says there are no syntax errors so I can't figure out whats going wrong!
Can anyone help?