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
2answers
576 views

Custom search: Search posts but display parent page in results

I'm using Wordpress 3.5.1 with a modified twentytwelve theme. My main site structure is based on the Smooth Slider plugin (jQuery Cycle). I have Pages that contain only a shortcode (for example, ...
0
votes
0answers
11 views

jQuery wp_dropdown_categories?

I'm trying to make a search with 3 options that are parent categories. Make, Model, and Year. "Model" is dependent on "Make", When Make is selected The models should display the grandchildren of the ...
1
vote
2answers
46 views

Click loads template via ajax

I'm trying to load a template via ajax if the user clicks on a button. This is the code I'm using: On functions.php: function phantom_scripts() { global $child_dir; /* Ajax Requests */ ...
0
votes
1answer
41 views

Are innerHTML elements visible to jQuery functions?

For example, on my admin page i.e. dashboard side: //This is hidden until search results come back //which will be inserted as innerHTML within #searchResults <div id="hideShow"> ...
0
votes
0answers
32 views

Minify CSS & JS files server side for Wordpress

I'm hoping someone can help me. I am looking to create a php script that will minify (and preferably concatinate) all my CSS and JS files into one minified file for each. i.e, one JS file and one CSS ...
0
votes
1answer
2k views

Simple Button onClick to trigger jQuery function

I have looked similiar questions but any of it didn't worked I want to trigger jQuery function with onClick button, but it didnt worked. HTML structure : <button class="my-button" ...
1
vote
1answer
63 views

Bootstrap Drop Down menu is not working

Bootstrap dropdown is working when i added the jquery( https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js ) in footer and by deregistering wodpress default jquery. When i disabling the ...
0
votes
0answers
22 views

How to properly use chosen jquery in wordpress theme customizer

From past 15 days I have been trying to add chosen jQuery plugin in Wordpress Theme Customizer. I have succeded also in adding the chosen,jQuery plugin properly. But the problem is that when I ...
0
votes
1answer
4k views

Accept AJAX call with serialized form data

I'm trying to pass a wordpress plugin some form data via ajax and it works just fine, unless the form data is serialized, then the server responds with an error message. I'm stuck with this for days ...
1
vote
1answer
97 views

Adding fields to the media uploader with jquery listeners

So I have the code to successfully add a select field to my media uploader (gallery view) which is cool, but I also need to add some jquery listeners to that field. I'm using the ...
1
vote
1answer
20 views

multiple taxonomy select display only one in front end

I have various custom taxonomy, sometime, I have multiple choise selected in the back end ( cf screenshot) however, in Front end, I have only one getting display, I would like to have all of them ...
0
votes
1answer
56 views

How to call javascript function (jquery) in a shortcode?

Before asking here, I've searched a while and found a tutorial about creating a wordpress plugin with shortcode and javascript calling. But I'm not able to make it work on my side. The tutorial is ...
1
vote
1answer
23 views

Is there a restriction in WP on the use of jQuery load function?

I'm just trying to load a simple txt file for testing purposes. jQuery(document).ready(function(){ jQuery("#buttonAjax").click(function(){ jQuery("#demo").load("demo.txt"); ...
0
votes
0answers
14 views

window.send_to_editor from custom thickbox button

I am trying to append a shortcode to the editor from a custom thickbox window. Everything is working smoothly except that the content isn't being sent to the editor. Here is the thickbox HTML. ...
0
votes
0answers
10 views

Adding a jQuery rotator function

I wanted to test and use the bellow function from @kaiser for a jQuery rotator, but I received an error. Can anyone tell me what is wrong? I have followed all instructions of the author. The ...
-1
votes
1answer
36 views

WooCommerce - Checkout suddenly stops working [closed]

From one day to the next apparently the checkout, specifically selecting a payment option stopped working. I can't figure out why, but when selecting an option, the page keeps jQuery reloading. this ...
0
votes
2answers
548 views

AJAX values converted to PHP Variables?

I just started playing with Wordpress and I have a question about the AJAX side of things. I think that I understand how the AJAX front-end to server side processing, back to font-end works. But, I ...
0
votes
0answers
21 views

I' trying to display list of post and next and previous navigation for posts

using ajax in wordpress but i'm not able to get the same thing. here is my code this is my tag.php to display the posts " > <div class="post_text"> ...
0
votes
0answers
9 views

Perform a 'refresh' transport or open the site in new tab, after saving the theme in Customizer

Is it possible to perform a 'refresh' transport after saving the theme in Customizer? Can you help me about this? If it is not, then my plan B is just to open the site in new tab after saving the ...
0
votes
0answers
26 views

How to solve this script problem in theme directory?

I have a jQuery Ajax call that calls a php script. This call works if the file is in the root of the site but does not work if this php script is in the theme folder . Additionally, I have a 500 error ...
1
vote
1answer
988 views

Intergrating agile carousel to wordpress: how to write the ajax_callback function

json is totally new to me how to write an ajax_callback function for agile carousel to work in wordpress? Below is the jason data format that I need to write as php arrays for it could be parsed by ...
0
votes
1answer
38 views

add bootstrap post slider with tabs

I'm trying to add a carousel with my post. UNder the carousel, some tabs with the post title. On click of the post title, it should change it the slide to display the related post. In " Static" in ...
0
votes
0answers
10 views

What to do after a wrong RewriteRule?

I have A Wordpress MU and following this answer I changed my root .htaccess placing this before the Wordpress loop RewriteRule / /subfolder [R=301,L] trying to have a different homepage. It didn't ...
0
votes
1answer
83 views

Prevent other versions of jquery from loading on static front page

This site is using cordillera which calls on /wp-includes/js/jquery/jquery.js?ver=1.11.2. The child theme contains a front-page.php which consists of: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...
0
votes
3answers
842 views

wp_dequeue_script not working in my plugin

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
2answers
2k views

Using Jquery submit with ajax request

When the user clicks the 'submit' button on my form, I would like 'this will be echoed back' to be displayed within an alert. The only JS console error I get: Failed to load resource ...
0
votes
2answers
1k views

How to add a “ waiting” icon for an ajax in WP frontend?

This is my search js code for processing search : jQuery(document).ready(function($){ $('#searchsubmit').click(function(e){ e.preventDefault(); var searchval = $('#s').val(); ...
0
votes
1answer
46 views

JQuery is not defined but jquery script is loaded in source [closed]

I'm new to Wordpress and I'm trying to use JQuery on a static home page. I'm getting the infamous "Uncaught ReferenceError: JQuery is not defined" error, although in the page source the JQuery script ...
0
votes
2answers
9k views

How to add jQuery script to an individual page?

I have this code which I want to add into a specific page of mine. I don't want to create a file for it and then include etc (though do tell if that would be the only way). Also I don't want it to be ...
4
votes
1answer
207 views

Move Wordpress native javascript to bottom of page?

Checking my page in google page speed insights, it complains that there are some javascript that is blocking the rest of the page from loading. The javascript in question is native Wordpress scripts ...
0
votes
0answers
22 views

Global Navigation for Multi-site Sub-sites Using jQuery

I'm looking to add the main site's main menu to the top of all sub-sites on a multi-site install. Requirements The menu should appear directly after body, above any site content, independent of ...
0
votes
0answers
44 views

Open Modal and load external URL in new tab

The theme CouponXL http://demo.powerthemes.club/themes/couponxl/ that is specific offers and discount coupons, clicking on a discount coupon (SHOW CODE) comes a modal window (from its own URL) and in ...
0
votes
0answers
11 views

Not show script code in widgets

Put the script code , but it does not appear, no matter which widget is . The code is a counter for visits. Putting it in the Visual editor remains empty. Any other code appears. <script ...
0
votes
1answer
394 views

Accessing Advanced Custom Fields with Repeater using jQuery instead of PHP

I am using Advanced Custom Fields (with repeater) and am currently using the following code to access the fields, i.e.: <?php if( have_rows('postage_prices') ): ?> <ul ...
0
votes
0answers
17 views

jQuery.suggest only suggestion is “0”

I'm trying to get suggestions in a text field with data from a database, inside an admin page. The only suggestion I get, no matter what, is always "0".. why? Relevant code parts the ...
0
votes
1answer
429 views

Custom meta box with jQuery.sortable custom post type list

What I'm trying to do is have a custom post type ordered differently on different pages. I've searched around for quite a while and can't seem to find anything to help. I have a post type named staff ...
1
vote
0answers
87 views

Display parent and child taxonomies in separate drop down select fields

I've used a piece of code from another question here but my second select field did not changed accordingly. Can anyone tell me what's wrong? Below is my code: My php functions: function ...
0
votes
0answers
54 views

Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn't work

I've added to the normal WordPress gallery popup (when clicking "Add Media" in the WordPress editor), in order to allow my custom gallery type to be selected (which interacts with / uses the main ...
0
votes
0answers
16 views

how do I include a link when it was click and make button disabled forever

jQuery( document ).ready( function( $ ) { var counter = 1, element = 'input.edit'; $( element ).click( function(e) { counter ++; // for control debugging in console ...
0
votes
1answer
208 views

Ajax not firing properly using Firefox, but works in Chrome

I'm working on a plugin that seems to be fine in Chrome, but is not firing the PHP script via Ajax in Firefox. It is driving me to distraction. Here are the code blocks that relate to it. First, the ...
0
votes
0answers
17 views

Theme Customizer not recognizing Widgets

First of - i do not know much coding, though i do learn quickly and am looking to get this issue sorted ASAP. I am sure it is something simple. When i load up my site in the Wordpress Theme ...
1
vote
1answer
829 views

Right way to update widget on dynamic new input field

I have code to add an input field dynamicly in my theme. I have testd it, as a metabox and it works. But, not in a widget. First add and update, that codes work, but when I refresh page or try to ...
0
votes
1answer
49 views

How to Add Jquery FullCalendar in wp plugin in admin

wp_register_script('moment', plugin_dir_url( __FILE__ )."js/moment.min.js", false, null, true); wp_register_script('fullcalendar', plugin_dir_url( __FILE__ )."js/fullcalendar.min.js", false, ...
0
votes
4answers
2k views

Wordpress Ajax always returns a 404 error

I just got this code from a tutorial. I can't seem to get it to work. HTML (home.php) <form name="myform" id="myform" action="" method="POST"> <!-- The Name form field --> ...
0
votes
0answers
26 views

Conflicts with jQuery

I wrote a plugin that works fine, but in one site I get jQuery loaded twice even if I don't enqueue it myself (I guess the theme loads it also). I tried to deregister it and than again enqueue but ...
0
votes
0answers
17 views

Share jQuery plugins across multisite

I often use the same jQuery plugins (fullCalendar, dataTables and such) and would like to share them among the different sites of a multisite installation. Is it possible to create for example a libs ...
0
votes
0answers
30 views

How do I insert jquery snippet into Wordpress?

I have searched all over but I apparently am not understanding how to put this jquery snippet I have into Wordpress. If someone could help me get this working it would be appreciated. jquery snippet: ...
2
votes
1answer
27 views

How to listen to color changes on the color picker?

I am trying to run some custom jquery function every time the colorpicker's color change. The colorpicker is include as part of the WP core. I have been looking at the JS code, but I can't figure out ...
2
votes
2answers
1k views

AJAX returns response 0

I'm trying to get user profile values using an AJAX call, but the response is always 0. Here's my PHP: wp_enqueue_script( // Add JS to <head> 'cc-author-change-post-author', ...
0
votes
3answers
30 views

Stylesheet won't load even when linked

I don't know what I'm doing wrong here. I created a page with accordians, the jquery script loads just fine but when I link the CSS stylesheet, no CSS shows up. It is not an external stylesheet, I ...