Twenty Ten Child Theme Function Question
-
I have a slideshow- in Javascript that I want to use.
Here is the code. When I execute it into the functions.php in my Twenty Ten child theme- I get errors. What am I doing wrong?
function slideshow() { if (is_front_page()) { ?> <div class="slideshow"> <a id="slide1" class="slide" href="https://www.oneotacoop.com"></a> <a id="slide2" class="slide" href="https://www.google.com"></a> <a id="slide3" class="slide" href="https://www.facebook.com"></a> </div> <div id=slideshowbuttons> <div style:" height: 40px; width: 40px; float: right;"> <a class="prevbanner" href="#"><img src="https://www.oneotatest.com/wp-content/themes/thesis_182/custom/images/arrowleft.png" /> </a> <a class="nextbanner" href="#"><img src="https://www.oneotatest.com/wp-content/themes/thesis_182/custom/images/arrowright.png" /></a> </div></div> <?php function slide_script() { echo "\n\n"; ?> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="https://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.72.js"></script> <script type="text/javascript"> $(document).ready(function() { $('.slideshow').cycle({ fx: 'fade' //You can change transition effects here. }); $('.slideshow').cycle({ fx: 'fade', prev: '.prevbanner', next: '.nextbanner' }); }); </script> <?php
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Twenty Ten Child Theme Function Question’ is closed to new replies.