jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is included with WordPress, and available to both themes and plugin developers.

learn more… | top users | synonyms

0
votes
1answer
278 views

enqueue jQuery into the footer

I have looked but no where seems to cover how to place jQuery into the footer, at least not the way I have it in my theme, is there a way to place the following into the footer? // Load jQuery ...
0
votes
1answer
113 views

After inserting jquery weather code, my responsive menu is lost

Site with issues - http://rheareview.com I have a community news website built on wordpress (multisite). The task was to place a weather feed including current temp including nice weather condition ...
0
votes
0answers
12 views

why jquery never trigger [duplicate]

very simple think it was working before on my other project but now for this. i have no idea why.. i have simple drop down menu in wordpress. made via jquery and css.. actually everything fine... ...
1
vote
1answer
90 views

Add Lightbox To WordPress Native Gallery

Is there a way to check if a gallery is linked to an attachment page or to an image file via jQuery or WP filter? I'm trying to add a lightbox to gallery image that is linked to image file. But I ...
0
votes
0answers
26 views

how to disable inner links in wordpress

i have used jquery accordion menu plugin for site navigation in my wordpress website. in that i like to disable secondary level links for specific main links. i have disabled third level links by ...
0
votes
3answers
228 views

How can I loop into two different DIVS without repeating the DIVs

I am having a little trouble trying to figure out how I can accomplish this: I have a container with two colums in it, a right and a left column. Each column will have 3 posts with a short excerpt ...
0
votes
1answer
105 views

Execution of JavaScript on save post

I got stuck with one problem, can somebody please help.. :) I would like to execute custom JavaScript function before post is saved, and i can't find how to do that. Something like JavaScript version ...
1
vote
1answer
153 views

Enqueue Google CDN jQuery in Footer

I'm trying to enqueue jQuery from Google's CDN and have it called in the footer rather than the header of my theme. Here's my code: wp_deregister_script('jquery'); wp_enqueue_script('jquery', "http" ...
0
votes
2answers
33 views

JS script not being included [closed]

I am trying to enqueue a js file in functions.php but its not working. Following is my code add_action('init','shopswing'); function shopswing(){ if(!is_admin()){ ...
0
votes
0answers
10 views

How to include taxonomy.php from wp-includes the proper way? [duplicate]

I tried including taxonomy.php from wp-includes folder in my custom php script (which is called by jquery) but I get this error: Fatal error: Call to undefined function add_action() in ...
0
votes
0answers
50 views

jQuery loaded in wrong order for non-admin page views only

I am calling /js/gallery_sugar.js with the following block of code in my plugin. It works fine while viewing the pages logged in as admin, but it doesn't seem to be running when I am just viewing the ...
-1
votes
2answers
160 views

Ensure an external javascript file called from plugin is loaded after jquery is called

I am calling a javascript file from my wordpress plugin code using: add_action('init','gallery_sugar_js_init'); function gallery_sugar_js_init() { wp_enqueue_script( 'gallery_sugar_js', ...
0
votes
1answer
73 views

Need To Deregister Scripts Via Functions.Php

Well, I am a little disappointed how difficult Wordpress it makes to deregister scripts. First, I got a list of all handles, so I looked it up and the handle was jquery-migrate I then added this to ...
0
votes
1answer
74 views

The Events Calendar Plugin - List View Background Colour Issue [closed]

I'm trying to look for some help, I've got a WordPress website that I'm working on. I'm using this plugin called The Events Calendar, but in List View, the background keeps showing in transparency... ...
0
votes
2answers
147 views

How to Add a .js file Only in one specific Page Dynamically to Head

I need to add some scrips for Google Maps only in my contact page and I do not want to populate it on all pages. I am not willing to create a custom header as well so I was thinking is there any way ...
0
votes
1answer
104 views

Trying to fix multiple category drop down

I'm having some problems trying to fix my category drop down on the website i'm developing. Basically one drop down filters has "Sort by Location" and the second one is "Sort by Price" The first one ...
0
votes
1answer
98 views

Creating multiple category drop down

I'm trying to figure out on how to create a multiple category drop down to filter different types of post Here is an image of my work in progress ...
0
votes
1answer
171 views

jQuery to Create Button to Show/Hide WordPress Comments and to Hide Comments by Default

I am attempting to create a button to show/hide comments in WordPress. I am currently using the following script: <script> $(document).ready(function() { // Get the #comments div var ...
0
votes
0answers
55 views

How to trigger Jetpack's Infinite Scroll before it reaches bottom of page?

Currently, Jetpack's Infinite Scroll loads the next set of posts in two different ways, one is by clicking a link and the other way is when user reaches the bottom of the page. However, I am ...
0
votes
1answer
37 views

How to update scrollbar when using Jetpack's Inifnite Scroller?

for the last couple of days, I have been trying to have a custom scrollbar (jquery+css) while using Jetpack's infinite scroller. What I want is to get rid off the standard scrollbar and use a custom ...
-2
votes
1answer
160 views

Add a class to a menu item depending on a body class

I need to have a class of current-menu-item added to a li with the id of #menu-item-127 if the body class is post-type-archive-team I can do this with jQuery - $(function(){ if ...
0
votes
3answers
5k views

wp_head() remove redundant scripts?

hey guys, quick question. I'm using jquery for my current project (the latest release). A few plugins I'm using are using jquery as well and they are inserted through wp_head(). Since I want my ...
1
vote
1answer
641 views

jQuery ajax call throws an HTTP 302

I'm trying to implement a jQuery Autocomplete where the Autocomplete gets its data from a ajax source. However, for some reason when I make the call it results in a 302 which in turn results in a 404. ...
0
votes
1answer
21 views

Is there some way to refator this jQuery wrapper?

I have a script which looks like this $(function(){ ... Jquery Code in Here }); and I want to wrap it to make it compatible with WordPress. Do I have to do ... (function($){ ...
0
votes
2answers
213 views

Jquery script not loading on site Front page

I've been working on updating a site which was running on an old version of WordPress, I've had to update the theme, most of the plugins and finally got the WordPress up to date. I've had to do a few ...
1
vote
0answers
107 views

WP UI style within shortcode - Any Suggestions?

I am using the wp-ui Wordpress plugin to create vertical tabbed content. What I want to do is add a span to part of the tab title - to add some additional style, but the shortcode/plugin strips my ...
0
votes
0answers
75 views

Added input box and button with jQuery to the Add New Post page. Clicking/pressing them always reload the page

I am adding a simple pair of input box + button dynamically to the Add New Post page, using jQuery. This is the code in my js file: (function($) { $(document).ready(function() { var ...
0
votes
1answer
34 views

Admin-ajax.php is dying “0” without processing function

I am trying to learn how to process AJAX requests in Wordpress the correct way. To do this I am adapting this tutorial to create a super simple AJAX request to place the ID of a post (from a link) ...
0
votes
0answers
48 views

Embed stock quotes in a lightbox?

Does anyone know of a method to automatically add stock quotes when a company is detected? Good example here (WSJ):
2
votes
1answer
463 views

Ajax with jQuery UI dialog not working

I am trying to update my custom database table when changes are made in a dialog box. The script for the dialog box and ajax call is as follows - jQuery(document).ready(function($){ $("td > ...
0
votes
0answers
111 views

I want to edit an AJAX Wordpress Pagination

I am using this code to be able to load my content using Ajax (loading content without refreshing the page). The code I found fades out the content and fades in the new content. I want to add the ...
0
votes
1answer
70 views

Group posts by weekly or monthly

Is there an easy way to group all WordPress blog posts by Weekly or Monthly grouping. Ideally I do not want the posts to be displayed by grouping in Front Page but would like to add it as an element ...
0
votes
0answers
84 views

jQuery conflict on EDIT POST page - Getting blank White Screen

I have made a button to show up on ADD/EDIT POST page with onClick function to import values and insert to custom fields. My button/script looks like: <script type="text/javascript"> ...
0
votes
0answers
28 views

IE Jquery Access Denied

Below code i am using it to open print window with some html content in some div. This code is working perfectly fine with Chrome and Firefox however when I run it on IE 8,9 it is opening a window ...
0
votes
1answer
34 views

Change CSS for logged in users

In my css i have a hidden div id: #example {display:none;} How can I set this to display:block for logged in users only? I am assuming using Jquery would be the best option here for best ...
0
votes
1answer
615 views

Using wp_ajax and wp_ajax_nopriv hooks

I want to send an ajax request and want to process it if the user is logged in. Therefore I want to use following two hooks, but I am not sure if I am using them correctly. Is it correct to use same ...
0
votes
0answers
104 views

How to get styles from iframe in Customizer

I'm trying to get current styles from a live preview when Customizer is loaded to set them in my controls. How can I do that? I was trying in this way: $('#customize-preview ...
0
votes
2answers
65 views

Clear custom field when new tag is added

When adding a new tag in the admin interface, WordPress doesn't reload the page. It appears to send the data with an ajax call, clear the fields and add the tag to the list on the right. I am working ...
2
votes
2answers
643 views

Installing jQuery plugin to wordpress theme (Incredible)

Ok so here is the plugin in question I'm trying to integrate it on the homepage of my wordpress theme (incredible bought from themeforest) After reading up on wordpress enqueue script and all that ...
0
votes
0answers
120 views

How to respond with WP_Ajax_Response();

I'm using WP_Ajax_Response(); to respond to some ajax and output it to a div, everything works great. But how exactly do I respond if I want to output some php in to a div? A wordpress loop for ...
1
vote
0answers
90 views

Vanderlee jQuery color picker and WordPress Errors

Has anyone gotten the Vanderlee jQuery color picker to work with WordPress? I'm evaluating color pickers with alpha support for my theme and this one just refuses to work. ...
1
vote
5answers
2k views

How to load a jQuery script last?

How to get this to load last? <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("div.domTip_tipBody").mouseover(function(){ jQuery("#yyy ...
0
votes
2answers
135 views

wp_dequeue_script not working for my plugin. I want to remove the themes JS from the dashboard

There is a theme my client is using. It enqueues many scripts in the admin area of wordpress. I'd like to dequeue these so that my plugin works properly. Commenting out this code wp_enqueue_script( ...
0
votes
3answers
90 views

Why not working jquery show() function in wordpress? [closed]

I try create a quick comment form on my wordpress with a link like this: My plan is when you click this link,you get a comment form with jquery show() function, where you can add a comment in ajax. ...
0
votes
3answers
4k views

How to load post content on index page using ajax when post title in sidebar is clicked

I'm working on a new blog which display in a list, on sidebar, some categories and the posts of them. In the index page, in main content, I list some post titles from other category "New". What I ...
1
vote
1answer
194 views

Can someone please tell me what is wrong with my plugin?

Two days back a made a plugin that allows me to insert toggle box in to the post with the shortcode [toggle Title="My title"]toggle test[/toggle] I also posted my plugin on WordPress.org plugins ...
1
vote
1answer
299 views

Make parent category not selectable when it has child categories

I'm trying to find a way of disabling the selection of the parent category within Wordpress 3.5.1 (post editor screen) only when that parent category contains child categories. My structure: ...
0
votes
1answer
36 views

Override default options in plugin metaboxes

Imagine you are on a post-new page to add a post, and a metabox added by a plugin has a lot of checkboxes that always need to be checked manually. Here is one of them: <div class="form_item ...
3
votes
1answer
243 views

Enabling jquery when dragging available widget to sidebar area

So I have some widgets that are using some custom jquery on the backend. I can get the widget forms to call the jquery files but only AFTER I've saved the widget and reloaded the page. Is there ...
0
votes
1answer
683 views

'jQuery is not defined Error' appearing in load-scripts.php

I'm writing this question having already found a solution, in order to see whether other people have encountered this problem. I was having a problem on the back end of a site I am building in ...