Title: jQuery script not working
Last modified: August 31, 2016

---

# jQuery script not working

 *  Resolved [jos3m](https://wordpress.org/support/users/jos3m/)
 * (@jos3m)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-script-not-working-1/)
 * Hello,
 * I’ve added a slideshow to a page in wordpress, I’ve loaded the style and the 
   script with wp_enqueue and they are loaded correctly but the slider script is
   not executed, I read that “$” has to be replaced by “jQuery” but I don’t know
   where to make the changes. Can you help me?
 * This is the direction of the script –> [http://tympanus.net/Development/ParallaxContentSlider/js/jquery.cslider.js](http://tympanus.net/Development/ParallaxContentSlider/js/jquery.cslider.js)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-script-not-working-1/#post-7068001)
 * Hi jos3m!
 * How are you adding the slideshow? Is it from a theme or a plugin?
 * Generally when you use `wp_enqueue_script`, the second parameter is the location
   of the file. So if I load a script from my theme it would look something like:
 *     ```
       wp_enqueue_script( 'my-neat-js-file', get_template_directory_uri() . '/js/da-big-show.js', array( 'jquery' ) );
       ```
   
 * That file would reside in my theme’s `js` folder and that’s the file I would 
   need to alter to get things to work. 🙂
 * Hope that helps you out!
 *  Thread Starter [jos3m](https://wordpress.org/support/users/jos3m/)
 * (@jos3m)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-script-not-working-1/#post-7068087)
 * Hello Jose Castaneda,
 * This is the full code of the slideshow, which include the reference to the stylesheet
   and script, the html and the call to the function at the end:
 *     ```
       <?php
       				wp_enqueue_style('slideshow', get_stylesheet_directory_uri() . '/css/slideshow.css', false, '1.1', 'all');
       				wp_enqueue_script('jquery.cslider', get_stylesheet_directory_uri() . '/js/jquery.cslider.js', array ('jquery'), 1.1, true);
       			?>
   
       			<div id="da-slider" class="da-slider">
   
       				<div class="da-slide">
       					<h2>1. Easy management</h2>
       					<p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.</p>
       					<a href="#" class="da-link">Read more</a>
   
       					<div class="da-info"></div>
       					<div class="da-img da-bg1"></div>
       				</div>
   
       				<div class="da-slide">
       					<h2>2. Revolution</h2>
       					<p>A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.</p>
       					<a href="#" class="da-link">Read more</a>
   
       					<div class="da-info"></div>
       					<div class="da-img da-bg2"></div>
       				</div>
   
       				<div class="da-slide">
       					<h2>3. Warm welcome</h2>
       					<p>When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.</p>
       					<a href="#" class="da-link">Read more</a>
   
       					<div class="da-info"></div>
       					<div class="da-img da-bg3"></div>
       				</div>
   
       				<div class="da-slide">
       					<h2>4. Quality Control</h2>
       					<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar.</p>
       					<a href="#" class="da-link">Read more</a>
   
       					<div class="da-info"></div>
       					<div class="da-img da-bg4"></div>
       				</div>
   
       				<nav class="da-arrows">
       					<span class="da-arrows-prev"></span>
       					<span class="da-arrows-next"></span>
       				</nav>
       			</div>
   
       			<script type="text/javascript">
       				jQuery(function() {
       					jQuery('#da-slider').cslider({
       						autoplay	: true,
       						bgincrement	: 450
       					});
       				});
       			</script>
       ```
   
 * The js file is in a “js” folder inside of my child template’s folder
 *  Thread Starter [jos3m](https://wordpress.org/support/users/jos3m/)
 * (@jos3m)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-script-not-working-1/#post-7068213)
 * I don’t know how to edit the post… Anyway the problem was a missing Modernizr
   script

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘jQuery script not working’ is closed to new replies.

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [jos3m](https://wordpress.org/support/users/jos3m/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/jquery-script-not-working-1/#post-7068213)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
