The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Javascript and WordPress problem

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #25460

    In a site I am building I am trying to include a javascript picture fade in/out effect using jquery. The script is from here:

    I have successfully implemented it on a testing page but I can’t get it to work on the actual site:

    As you will see I am using WordPress on the site. I have followed online tutorials ( about using jquery in wordpress but I am obviously doing something wrong.

    Any help you can give a complete javascript/jquery newbie would be most appreciated.


    According to firebug’s javascript debugger "$ is not a function". So you have a conflict going on with another javascript library in WordPress.
    Try changing it to this:

    jQuery(function() {

    function onBefore() {


    Thanks for the repsonse. That was one of the things that I read on the web and had tried changing but to no effect.

    Another poster on a different forum told me to call my Javascript file and my images with this: <?php bloginfo(‘template_directory’); ?>/js/jquery.cycle.lite.js

    It is now all working.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.