The answer is obvious. The jQuery is loaded in noConflict mode. It means that the global $
shortcut for jQuery is not available. You have to use closure, like this:
(function($) {
$(document).ready(function() {
$('#slider').coinslider({
width: 948,
height: 367
});
});
})(jQuery);
In addition I would like to recommend you to create hook handler for wp_enqueue_scripts
action. You need to enqueue jquery
in this hook. In this case you will enqueue jquery only for frontend. Like following:
add_action( 'wp_enqueue_scripts', 'wpse8170_enqueue_scripts' );
function wpse8170_enqueue_scripts() {
wp_enqueue_script('jquery');
}
Related Posts:
- How to send multiple data fields via Ajax?
- Adding an onclick function to go to url in JavaScript?
- Checking a Url in Jquery/Javascript
- Download File Using jQuery
- Jquery Ajax Posting JSON to webservice
- How can I display a tooltip message on hover using jQuery?
- correct way of comparing string jquery operator =
- JQuery: $.get is not a function
- Bootstrap carousel not sliding
- Split string in jquery
- Detecting value change of input[type=text] in jQuery
- Javascript : array.length returns undefined
- Comparing dates in jquery
- jQuery: using a variable as a selector [duplicate]
- Slide right to left?
- jQuery – checkbox enable/disable
- How can I correctly format currency using jquery?
- Correct Method to run scripts with dependencies without enqueue?
- Can’t get a JSON object in response to an Ajax request with wp_ajax
- How to prevent wordpress from loading old versions of jquery in wp_head();?
- Using the WordPress Media Library and returning the Attachment ID rather than URL?
- How to get a jQuery script to run on a page?
- Moving jQuery to the footer without using de-register in WordPress
- Best approach for loading a sidebar Only if the screen max-width is >900px?
- Localize variable for multiple Shortcodes
- ajax call in wordpress front end
- Including jQuery in WordPress
- Prevent five different copies of jquery from being included on every page
- javascript is not working on Event Submission?
- WordPress audio player causing js error, mediaelementplayer is not a function
- How to get a value from PHP in Jquery through Ajax
- Script for initializing JQuery Masonry for WordPress
- Combining media queries with image sizes
- Implementing lazy loading in homepage posts instead of pagination
- Is it possible to hide media details sidebar when wp.media popup is being opened?
- Correct way to write jQuery functions in WordPress
- Format numeric symbols in titles
- How can I make this custom menu work?
- Remove WordPress scripts
- Use jQuery to conditionally hide elements in Quick Edit
- AJAX Loaded Glossary like Search results with links to other entries from custom table
- Using bootstrap-slider and bootstrap-switch in wordpress admin panel
- Trouble with WordPress Ajax Login System – 302
- Why does javascript works only if logged in?
- Load the next posts ajax
- How does WordPress handle HTML Tables interaction with jQuery
- what’s the best way to add a class to the div with a class of post every 4 seconds using jquery? [closed]
- Why Won’t my jQuery Play Nice with WordPress?
- Delete some text and change html tag with Jquery
- Problem passing id-specific objects to javascript via wp_localize_script
- Cannot get Jquery to work with wordpress
- Problem getting .js file to load via a plugin
- Using jquery-1.7.2.min.js instead of the wordpress jquery
- Adding jQuery UI elements to WordPress page
- Superfish Menu Not Loading
- Jquery UI Google CSS, from where?
- datepicker for custom post type admin
- Disable Cloudflare Rocket Loader for jQuery javascript and make it load first
- Convert UL to dropdown list not working
- JQuery Counter Limit not working for WP Comment Textarea
- jQuery selectable() function won’t work in wordpress
- jQuery(selector) vs. $(selector)
- Null/undefined return in WordPress AJAX request
- Disable auto hide of the login form on Woocommerce’s checkout page
- How do I make Contact Form 7 pop up in thickbox? [closed]
- How To Include JavaScript Files Only In Single Posts?
- jQuery .load and WP function
- Determine image height within Fancybox
- How to use JQuery Marquee in WordPress?
- How can I get this menu container to be the height of the contents?
- JQuery is not working after complete load of the page
- I am trying to load a Js Dynamic Audio Synth [closed]
- Uncaught ReferenceError: jQuery is not defined
- Carousel Slider For Custom PHP Snippet Is Not Working
- Target a specific page/template in jQuery
- why does so many javascript libraries are loaded along with my website?
- Why does my media selection script write to ONLY the first input field?
- Modify the href attribute of tag dynamically in WordPress
- Add a jQuery snippet for sepcific user role
- Move jQuery on *top* of footer
- Call admin ajax using absolute url? Relative URL breaks (frontend ajax)
- Dynamic image grid gallery
- Responsive framework – edit child js
- Page keeps refreshing with Ajax form
- jquery issue in functions.php
- JS plugin script loading but not working
- WP Calendar Shortcode not working on my theme
- Hide input field when second input field is in focus
- Are you sure popup on Contact Form 7 [closed]
- change the icon of a custom post type in WordPress to use twitter boostrap
- Is it possible to append an external html file to my wordpress navigation?
- jscrollpane problem with my child theme
- Using jQuery toggle() in WordPress post to show/hide Tweet button?
- Call a Simple JQuery from within Flash
- Ajax request with jQuery without WP_ajax
- JS file not loading [closed]
- How can insert JQuery in WordPress? [closed]
- I need a Pop up with description when i click an image
- My website si Blocked by google and warns the visitors that is Unsafe site
- Jquery in IE, fully messed up