• So I have this great slideshow that I use in Thesis but want to use with a Twenty Ten child theme.

    Here is the code:

    *Homepage Slideshow*/
    function slideshow() {
    if (is_front_page()) {
    ?><div class="slideshow">
        <a id="slide1" class="slide" href="http://www.oneotacoop.com"></a>
        <a id="slide2" class="slide" href="http://www.google.com"></a>
      </div>
    <?php
    }}
    add_action('slideshow');
    
    /*Slideshow Java*/
    function slide_script() {
    echo "\n\n";
    ?>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.72.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        $('.slideshow,.slideshow5').cycle({
    	fx: 'fade' //You can change transition effects here.
    	});
    });
    </script>
    <?php
    }
    add_action('wp_head','slide_script');
    
    ?>

    When I drop it in my functions.php file for my child theme it doesn’t work- I get: Parse error: syntax error, unexpected ‘}’ in /hermes/bosweb/web152/b1521/ipg.nikitcom/testit/wp-content/themes/Other Business Template /functions.php on line 18

    What am I doing wrong?

    Thanks!

    Niki

The topic ‘Adding Slide Show Function’ is closed to new replies.