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
0answers
3 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
4 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
30 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
14 views

Contact form 7: Check if user is logged

I'm using wpcf7-list-item trigger to define which content will be showed after mail sent. But how I check if user is logged or not? $(document).on('mailsent.wpcf7', function () {});
0
votes
0answers
11 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
13 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
16 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
22 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
26 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
55 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
21 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
14 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
27 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
27 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
15 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
28 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
6 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
23 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
28 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
34 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
33 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
34 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
47 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
22 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
36 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
28 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
9 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
37 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
27 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
25 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
37 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
37 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
15 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: ...
0
votes
0answers
130 views

ajax form with multiple submit buttons and values

I am working in wordpress and I have an html form with two submit buttons with same classname and different value. I am passing the submit button clicked value through ajax and show it on the screen. ...
0
votes
1answer
67 views

Angular not defined [closed]

I have this code on my website and I don't know why the angular is not being defined and neither is the jquery. I'm fairly new to web development so I don't know what to do with the coding in order ...
0
votes
1answer
20 views

My wordpress site is using local ip to point to jquery and other files, how to fix it?

I installed WP on my Raspberry Pi using this guide : https://www.raspberrypi.org/documentation/usage/wordpress/ I did not do the last part about permalinks yet. Problem is, when I navigate to my ...
1
vote
0answers
16 views

Edit single attachment on click (WP-admin)

I've created a custom media manager for a CPT I've created. I have everything functioning properly except an edit function. I want to have an edit button for each attachment that gets added to the ...
0
votes
1answer
147 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" ...
0
votes
0answers
68 views

Ajax call through admin-ajax.php returns 404 error

I am trying to do a pretty basic AJAX request at the moment, just to test functionality, routing my calls through admin-ajax.php. However, every time I try to fire the AJAX request, I get a 404 error ...
0
votes
1answer
62 views

Add jQuery to WordPress page

I need to add jQuery library to WordPress page. The page is rendered by a plugin shortcode. I've used the below methods but I don't see it working for my jQuery script. I tried to add these below ...
0
votes
0answers
3 views

How can i display time in place of button? [migrated]

I want to display a time in place of button when button clicked then button fadein and time show in place of button but my script not working button fadein only and time didn't show in place of button ...
0
votes
0answers
29 views

Repeating a loop after x amount of time

I'm new to Wordpress and PHP and would really appreciate a little pointer regarding a problem I can't solve: I have a Wordpress site and in my Homepage I have a section that when the page loads ...
0
votes
3answers
59 views

Include Jquery libraries in wordpress theme?

I have a file in my theme's JS folder named cycle2.js. How do I include the Jquery from 'wordpress→includes' into my theme? How do I load this custom JavaScript file 'cycle2.js' into my theme? I ...
0
votes
0answers
8 views

Nothing works with integration mediamaneger into metaboxes

When I try to put button upload an image nothing happens. what's wrong with this? I put meta-box-image.js into my folder in my theme add_action( 'admin_enqueue_scripts', 'prfx_image_enqueue' ); ...
-1
votes
1answer
18 views

Wordpress crash when insert long html code

i'm going nut.i wrote some code for a wp page, i inserted it into codepen and it works just fine, but the moment i use visual composer "html" snippet, and i copy it inside... wp crash. why? ...
0
votes
1answer
62 views

click event to unhide something after ajax not firing

I am working in wordpress and my ajax function result showed one button whose html is mentioned below. Now I want to run a click event on that button but when I click it nothing happens. Below is the ...
0
votes
0answers
40 views

Ajax is running my insert query twice

I am working in WordPress and I run a function to insert a row in database with ajax. Ajax runs but for some reason insert operation is performed twice. Below is my code Ajax jQuery(function ($) { ...
0
votes
0answers
19 views

RequireJS in custom theme. Working Example

I try to add to my custom wordpress Theme requirejs because I do not want to use wp_enqueue over and over to inject used plugins and on the other side I do not want to mess the DOM from the beginning. ...
0
votes
0answers
33 views

Pass custom image on add to cart

I'm trying to replicate the behavior that this site has: http://pixers.es/fotomurales/hermosa-mujer-ejemplo-de-la-acuarela-59301559 As you can see you can select a certain portion of the image to buy ...
0
votes
1answer
29 views

How to add a custiomized javascipt into a template

I am a newbie of Wordpress. Now I am trying to add my av_s.js file into a Wordpress template, but it seems much more crappy than I expected. I locate the av_s.js file in the js folder under my theme, ...