• I made a JQuery Slider and saved it as a PHP file (slider.php), and when I include it in the header it is working. But If it is putting in a page it is not working. I installed the PHP Plugin (PHP Execution), so other external page includes are working well. My purpose is different banner in each page, JQuery animated banner is only want in Home page, So i created a new page, named ‘HOME’ and included the ‘slider.php’ in the top of page, the images are showing but i think JQuery is not working. Can anybody have the idea..?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you enqueuing your javascript correctly?

    Thread Starter shaijuelayidath

    (@shaijuelayidath)

    I am doubtfull that wordpress having any other procedures to include a JQuery external page in the ‘WordPress Pages’ because my ‘slider.php’ with the Jquery banner is working well when I include it in the ‘header.php’ of the wordpress.

    Thread Starter shaijuelayidath

    (@shaijuelayidath)

    The code i put below is worked for me in the header.php but not in the wordpress page. Can you explain how to add this script as per the rule of wordpress. I have read the link you have sent to me, but i did’nt understand it because i don’t know well php and javascript, i am doing it completely from web reference. So, can you explain me how to write or insert the Javascript code to work the slider. Remember it is OK with when it is put in the header.

    <script type=”text/javascript” src=”wp-content/themes/twentyeleven/js/jquery-1.2.6.min.js”></script>

    <script type=”text/javascript”>
    ….Here Goes another Slider Related Javascript functions….
    </script>

    <div id=”slideshow”>
    <img src=”wp-content/themes/twentyeleven/images/transition1.jpg” alt=”Slideshow Image 3″ style=”opacity: 1; ” class=””>
    <img src=”wp-content/themes/twentyeleven/images/transition2.jpg” alt=”Slideshow Image 3″ style=”opacity: 1; ” class=””>
    <img src=”wp-content/themes/twentyeleven/images/transition3.jpg” alt=”Slideshow Image 3″ style=”opacity: 1; ” class=””>
    <img src=”wp-content/themes/twentyeleven/images/transition4.jpg” alt=”Slideshow Image 4″ style=”opacity: 1; ” class=””>
    <img src=”wp-content/themes/twentyeleven/images/transition5.jpg” alt=”Slideshow Image 5″ style=”opacity: 1; ” class=”active”>

    </div>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘JQuery Slider not working in Pages’ is closed to new replies.