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
66 views

Target WooCommerce submit button

I am trying to hook into the WooCommerce submit button and applying some custom jQuery scripts before submitting the order. However,I can't seem to target the submit button on the checkout page. I ...
0
votes
0answers
39 views

How to get attachment's custom url using custom media uploader

I'm wondering how to retrieve attachments's 'Link To' field when an image is inserted into a custom field using custom media uploader. And here's the code used: var frame = wp.media({ ...
0
votes
0answers
23 views

login_enqueue_scripts not working with javascript

I have this little modification to the login form: // Load Jquery before login styling add_action('login_enqueue_scripts', 'my_login_jquery', 100); function my_login_jquery() { ...
1
vote
1answer
78 views

window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes

I have added two custom meta boxes to a custom post type. One is to upload an image to be stored in a custom field value for a "headshot" and the other is to upload an image to be stored in a custom ...
0
votes
0answers
18 views

WordPress - jQuery - Form [duplicate]

I've checked previous answers in this forum related to my question but none of them solve my problem. Trying to run a jQuery script in WordPress in conjunction with a form I've created (not a ...
0
votes
2answers
326 views

Show success or error messages in Ajax response to Wordpress custom registration form

I have this custom form inside a Wordpress page template <?php if(!is_user_logged_in()) { if(get_option('users_can_register')) { if($_POST){ $username = ...
0
votes
1answer
28 views

Multiple selec2.js file loaded by several plugins

Since upgrading to WP 4.2.2, I have the following error in one of my js file : Uncaught TypeError: jQuery(...).select2 is not a function I google the issue and it seems that this can happen when ...
0
votes
0answers
33 views

Creating a comments voting system

I am trying to put together a voting system for comments and I can't figure out how to make the jQuery function to work. Here is the php function that updates the comment meta with the new vote count ...
0
votes
0answers
131 views

How to add a Custom Mailchimp AJAX Newsletter Subscribe Form

I want to add a custom Mailchimp AJAX Newsletter Subscribe Form to my WP Blog. I found this tutorial and have followed it: http://neal.codes/blog/custom-mailchimp-ajax-newsletter-subscribe. I've got ...
1
vote
1answer
27 views

SSL issues with WordPress site

So, I have a WordPress site that has SSL certificate installed. What I need is to disable SSL on some pages (to make a video ad script to work). But, the problem I am having is, If an user logs in to ...
0
votes
0answers
52 views

How to display jquery dialog box to open on specific page load?

$j(document).ready(function() { $j('#popup_content').dialog( { modal:true, resizable:false, draggable:false, height: 525, width:475, ...
0
votes
1answer
124 views

ajaxurl not defined on front end

I am trying to create a ajaxform on the front side. I am using the code jQuery.ajax( { type: "post", dataType: "json", url: ajaxurl, data: ...
0
votes
0answers
38 views

Select image and display from textfield?

I use the built-in filemanager to select an image from a form. <input id="upload_image1" class="rp-input-field" type="text" name="f16" value="<?php echo isset($upload_image1);?>" ...
0
votes
1answer
35 views

Can't add classes using jQuery from a JSON string with get_body_class()

In order to refresh the classes on the <body>element after an AJAX call, I am writing at the top of my AJAX response the following in JSON: $o[ 'classes' ] = get_body_class('project'); I can ...
1
vote
0answers
71 views

Admin wp_ajax hook returning 0

I've done some research but I can't seem to find the correct answer so I'm hoping someone can give me a hand. I'm attempting to use the wp_ajax hook in the admin section. The functionality should be ...
0
votes
1answer
38 views

Wordpress ajax not working in registration

guys. I've tried to build a wordpress simple registration form with ajax, but it doesn't work at all. Here is my code, a php and jQuery ajax. Please tell me what's wrong with my code. FYI, (1) the ...
0
votes
1answer
97 views

Using AJAX to return search form results

I'm trying to take user input from a search form, build a query based on user input, and then return relevant posts using AJAX. Right now, the form builds the select dropdowns properly. The form ...
0
votes
0answers
34 views

jQuery conditions for the wordpress

So, I have two menu items "First Item" and "Second Item" in my menu called . I want to change the title of the each items based on URL. For example, let say you are on the following URL: ...
0
votes
0answers
23 views

open wordpress tinymce editimage dialog on image click from editor

How can i open wordpress tinymce editimage dialog instead of image edit toolbar options. I did following but not seems working editor.onClick.add(function(editor, e) { if ...
0
votes
0answers
60 views

The jquery.js and Form Lightbox plugin conflict

I'm currently building a wordpress theme and I want to add two effects. On one effect I want the header to change opacity and hight on scroll and I did that by adding this lines of javascript ...
0
votes
1answer
89 views

How to include jquery validate in a template

I am attempting to load jquery's validate methods in my template file. The idea is to be able to run something like this: $jquery("#generateForm").validate({ submitHandler: function(form) { ...
0
votes
0answers
34 views

Javascript function to switch out images

I am trying to make a simple function that switches out small images with a large image onclick. The following setup works on the first click, but after that things go sort of haywire and images ...
0
votes
0answers
22 views

Remove old jQuery from my theme's files

I installed a silder plugin "smart slider 2" and when i put the code on the index file it shows "blank" space instead of the slider!, when i asked their support they told me to remove the old jQuery ...
0
votes
0answers
38 views

Using a JQuery Plugin on a Static Page

I have recently stumbled upon nicinabox's JQuery SuperSlides plugin and I would like to use this as a static front page for my WordPress website. The usage page ( ...
0
votes
2answers
100 views

how to remove default jquery and add js in footer?

I want to remove default jQuery, because I am adding new or latest jQuery. Also I want include some js in my footer. How can I do that? I want to add another different js like a slider js or css in ...
0
votes
1answer
38 views

jQuery functions work in console, but not live

I am trying to traverse the DOM in a number of places, replacing some of the content. jQuery('.homepage_buttons_text a[href^="http://danrobertsgroup.com/?attachment_id=1037"]').each(function(){ ...
0
votes
3answers
87 views

What is calling jquery?

I just cannot figure out what is calling two jquery scripts in my theme. Even if I turn off all plugins, they're still being called. I have not enqueued them in my function.php and also not in my ...
0
votes
0answers
124 views

Using Isotope in WordPress portfolio

I'm trying to create a custom post type portfolio and use Isotope for filtering according to categories but I'm not doing something right. I've loaded scripts in my header.php, created a custom post ...
0
votes
0answers
38 views

How to get phpchart to work in wordpress, jquery errors.

I'm trying to show a phpchart on my site but I'm getting a lot of jquery errors. phpchart support suggested I use iframe and "host" an external page inside the WordPress. How would I do that? I ...
0
votes
0answers
50 views

Dropzonejs with WPCF7

I have a form with the plugin WPCF7 and i have made it possible to upload multiple files(with drag and drop). Now the customer wants to upgrade the form too be able to upload several files at a time ...
0
votes
0answers
102 views

Front-end Ajax File Upload

I'm working on a project where registred users can upload file to a specific post type. For a more fluid navigation, I'm making this whole part with Ajax, so the page never reloads. However I'm having ...
0
votes
0answers
44 views

map with ajax content load

Hi i made a svg mapa to load data from a locations cpt, so when i click the location it loads the content through ajax. It all works fine, but that is in the cpt page archive page. Now i need a map ...
0
votes
0answers
43 views

JQuery Datepicker Blackout Dates

add_action('frm_date_field_js', 'limit_my_date_field'); function limit_my_date_field($field_id){ if($field_id == 'field_jk8k8s'){ //change jk8k8s to the key of your date field //get all the ...
0
votes
0answers
22 views

jQuery.GI.TheWall trigger issue

i want to use jQuery.GI.TheWall in my post. it is working fine on normal HTML page when i place in wordpress page not work work. i show error Uncaught TypeError: undefined is not a function ...
0
votes
1answer
27 views

jQuery(selector) vs. $(selector)

Why is it that in wp-admin/js/updates.js (in Wordpress 4.2) $(selector) is used but in wp-admin/incldes/file.php jQuery(selector) is used? Is there a particular reason for this or is it just an ...
0
votes
0answers
67 views

How to stop redirect to 404 page when I use jquery onchange function to select a value from a form field in wordpress

I'm developing a wordpress woocommerce website where I put a form where two drop down exists. where selecting a value from the first dropdown after page refresh it automatically goes the second ...
0
votes
0answers
69 views

Script not working with jQuery 1.x and wordpress

I'm having a bit of trouble with my wordpress site. In my footer I have some code that defers loading the JS file Misc1.js <script type="text/javascript"> function downloadJSAtOnload() { var ...
0
votes
1answer
90 views

How to add JS snippet before closing <head> tag?

I'm setting up jQuery UI on one of my WordPress pages that uses a custom template (course-landing-page.php). I enqueued the scripts for jQuery UI the proper way, but I need to add a JavaScript snippet ...
0
votes
1answer
110 views

Null/undefined return in WordPress AJAX request

I really need help on this one. I've been looking at it for hours and been getting nowehere. I am working with ajax in WordPress and this is kind of my first time doing so. I have a function in my ...
-1
votes
1answer
163 views

Contact Form 7 checkbox to add a new class to a div

I am using the plugin “Contact Form 7” for WordPress and I’d like to customise the styling of a form. So at some point the form contains a couple of checkboxes and the code generated by the plugin is: ...
0
votes
0answers
26 views

Extract and amend variables from 'like' plugin and put into visual meter gauge plugin

I am trying to extract the total number of likes associated with different posts from the WTI Like Post Pro wordpress plugin, then subtract the number of unlikes and feed this total into a meter gauge ...
0
votes
1answer
69 views

Pass the updated value of aid from form using ajax

I am working in wordpress and I want to fetch the updated value of aid field from form each time a submit button is pressed. There are two submit buttons and I want the id as per the clicked row HTML ...
0
votes
0answers
83 views

Update a div with ajax result

I am working in wordpress and this is an ajax call and I want the result of a row returned to a div with id #hero. Now since the result is a for loop and hero div is in each row. And the form has ...
0
votes
0answers
16 views

plupload.predictRuntime ERROR in Wordpress when Media Upload

plupload.predictRuntime ERROR in Wordpress when Media Upload. Shows this screen: It doesn't uploads or shows any image, and the error shown at debugging in Chrome is:
0
votes
0answers
62 views

Error with JQUERY in Multimedia Library of Wordpress

With the latest version of Wordpress I can't upload media. It shows this message from debugger: Uncaught Error: Syntax error, unrecognized expression: a[rel=] ...
0
votes
0answers
55 views

How can I organize nav menu lists as columns in WordPress?

Here’s what I am having a hell of a time with. I'm working on a dev site (which is WordPress based) that can be seen here. You see the responsive navigation for the ‘Course Schedule’ section is ...
0
votes
1answer
47 views

Can't seem to get JQuery working (wordpress plugin)

Im trying to learn how to create plugins using Wordpress but I stumbled upon this problem: Whenever I'm trying to run JQuery I get undefined error's and such... I tried different things I found ...
1
vote
2answers
97 views

Problem in loading javascript in footer

I have written a small plugin where i have loaded following scripts wp_enqueue_script('jquery', plugins_url('/js/jquery.min.js', __FILE__),'','1.7',true); wp_enqueue_script('new-cycle', ...
0
votes
0answers
58 views

How to convert jQuery plugin to a Wordpress plugin?

I am an "old" (64) rookie to the Wordpress world. I have been tearing what little hair I have left out over the past week trying to understand and use jQuery to build a simple calendar and display it ...
0
votes
0answers
16 views

Plugin preventing media buttons from working

When I have this plugin active (code below) the media button in the editor does not allow me to insert images. Any idea what needs to be fixed? <?php /* * Plugin Name: Guest authors * Description: ...