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

AJAX() post - how to avoid page getting blank when remote page refreshes

I am displaying content of the other website which refreshes periodically (refresh time is around 20 minutes). During refresh time, my original page gets blank. I would like to keep the content of the ...
0
votes
1answer
13 views

jQuery plugin not loading

I am trying to use the below function to enquue 2 scripts (one internal, one external). The internal one ('custom_script') is working, but the 2nd one ('formValidation') isn't (I get a 'validate() is ...
0
votes
2answers
15 views

No Object Properties sending form through AJAX

I'm using a Using modal window with + form to change the profile avatar. Like the following (functions.php): add_action('change_avatar', 'edit_avatar_function'); function edit_avatar_function($uid, $...
0
votes
0answers
15 views

jquery - output display statement

/** * VARIABLE PRODUCT PRICING TABLE */ function rp_wcdpd_switch_variable_pricing_tables(element_id) { jQuery('.rp_wcdpd_pricing_table_variation').hide(); jQuery(element_id).show(); } if (...
0
votes
0answers
24 views

Is it possible to change wordpress shortcode via javascript

Is it possible to change wordpress shortcode via javascript. Conditional shortcode like shortcode value=true if checkbox is checked else shortcode value=false if checkbox is unchecked
0
votes
0answers
7 views

How to prevent script from updating each image in Custom Image Widget

I found this create question here where you can create a custom image upload widget. Everything works great except as the disclaimer in the answer mentions every time an image is updated (if multiple ...
0
votes
0answers
43 views

Submit the form#post form via Javascript [on hold]

I have been working on a workflow for our lesser tech savy writers. They wanted things very spelled out, so I've created the below meta box and have hidden the publish meta box on an edit post page. ...
-1
votes
0answers
32 views

Where to place script in while loop

I'm currently working on a grid template for a WordPress Custom Post Type loop. Basically I'm showing a video cover and when the user is clicking the cover a Modal opens with video and more opens. ...
-3
votes
0answers
15 views

How to change Mobile navigation bar in Genesis? [on hold]

I am using eleven40 pro child theme for Genesis Framework. Here is current navigation bar:- http://www.slondeals.com I want to change the mobile navigation bar (dropdown menu) to (left side menu) ...
-1
votes
0answers
24 views

How to use Stellar.Js jquery plugin in wordpress

I have been searching for a proper jQuery plugin that does parallax effect on almost all devices and it seems like stellar.js is considered one of the best. I have been having trouble implementing it ...
0
votes
1answer
16 views

Notepad sticky plugin

I have this following code to give a textarea to a front end user to use it as notes on a page to write things to remember. But this code saves only one sticky note that can be edited whenever the ...
0
votes
0answers
8 views

How to exclude custom input fields from Wordpress Posts search?

I wrote up a plugin that adds a column to the Posts table in the Wordpress Admin panel. Each row has some input fields that hold some data information. This plugin has a cron that removes the sticky ...
0
votes
1answer
25 views

jQuery doesn't work in my php snippet

I have the following snippet to prevent the purchase of products by displaying a text and hiding the "proceed to checkout" button. The text part works great but the jQuery part doesn't i don't know ...
-4
votes
0answers
24 views

Filter Ajax Dynamic Archives Custom Posts Always not Showing Correct Result

Hy everyones, I'm building filter search using multi select option, when I'm selecting the country and then result of filter search always show all posts Here is my template <div class="row"> ...
-4
votes
1answer
19 views

Using Headroom.js with Bootstrap4 in Wordpress

So I'm trying to work on a site on my localhost here and I cant figure out why this won't work in Wordpress. I'm not sure if it's the way the scripts being declared or what as I've got a perfect ...
-3
votes
0answers
19 views

Else if statement help

I'm struggling to figure out why my else statement is not working. What's happening is, everything in my else statement is happening during the if condition, and I don't seem to understand why. Any ...
-3
votes
0answers
21 views

Gravity Forms Dynamic Population Pre_Submission Hook

I'm not very savvy with Jquery. Can you help me embed it on a single wordpress page so that it can act on my Gravity Form? I have a gravity form with an interactive google map in it. There are two ...
0
votes
1answer
16 views

Call full image url instead of stylsheet directory url in JS for Infinite Scroll Function

Can`t figure out how to call the gif image with a full url (for example: http:// urltoimage .com/test.gif) instead of the stylsheet directory url (obj_test.stylesheet_directory_uri + '/img/ajax-loader....
0
votes
0answers
10 views

Trouble displaying image, using Backstretch.js, Even tho the image comes up in the source code

Hey guys so I'm having trouble displaying an image using backstretch.js even tho the image comes up in the source code. I need help trouble shooting the problem, I went into the Backstretch.js repo ...
0
votes
1answer
41 views

How can I add the Post ID to Class Name in Jquery?

In the custom Wordpress theme archive page, I will have Sharing icons for all the posts. Below is the HTML for showing Sharing icon: <span id="post-share-<?php the_ID(); ?>" class="post-...
-1
votes
1answer
29 views

Combo box populating a DIV using ajax/jquery

What is a good technique (in 2016) to allow dynamic population of a Wordpress page? Basically I have to dynamically load a DIV in the webpage depending on selection of a combo box. BTW, are there ...
-1
votes
0answers
32 views

Enable Next button only when radio button clicked [closed]

I'm building a quiz which consists of 10 questions which are custom taxonomies, such as size, coat etc. The users can answer those questions and thereby filter through the taxonomies and are then ...
-1
votes
0answers
25 views

WooCommerce Shop Page Display Product Div as a Weird Loop

function neato() { global $product; if ( $product->get_permalink() ) { echo '<script src="https://code.jquery.com/jquery-1.10.2.js"></script><div class="new-projects"></div> ...
1
vote
3answers
61 views

How to use wp_localize_script in a WordPress page other than functions.php?

I have a contact form in a WordPress page like this: $( '#contact_form' ).bootstrapValidator({ fields: { // ... }, submitHandler: function( formInstance ) { $.post( "../...
0
votes
2answers
20 views

Adding scripts before plugins scripts

I have a site which uses Google's API's for jquery and a fallback for jquery. The problem is that I can't get the fallback to happen immediately after the jquery api attempt. What happens is that the ...
0
votes
0answers
17 views

Setting up jQuery noConflict to be used only for plugin?

I'm a little bit lost, I'm trying to make a plugin only use this specific version of jQuery so it doesn't conflict with other versions that are on the site. This is what I have tried and I thought ...
-1
votes
0answers
22 views

Inserting jQuery into a custom page

I have made a custom front page, code below. <?php /* Template Name: Front Page Custom */ ?> <?php get_header(); ?> <body class="custom-front-page"> <div id="cfp-...
0
votes
3answers
46 views

Jquery script with comments ID's

My html looks like this (simplified) $args = array(...); $comments_query = new WP_Comment_Query; $comments = $comments_query->query( $args ); foreach ($comments as $comment) { <...
1
vote
2answers
53 views

Returning a value from a PHP page

I have created a WordPress page that has this simple PHP code: <?php $result = array( 'State' => 'Done', 'ID' => 1 ); wp_send_json( $result ); ?> When ...
0
votes
1answer
36 views

Redirect wp_dropdown_pages() to an AJax request?

I want to get the result of wp_dropdown_pages() to fire an ajax request to show an image instead of redirecting the user to the page url. In other words, my pages are all for car models. I want to ...
0
votes
1answer
50 views

Combine CSS and JS files from plugins

I want to combine all my CSS and JS files. Given the fact that I use different plugins I don't see a way to do this manually because after an update of the plugin I have to start all over. So I did ...
0
votes
0answers
15 views

Drag & Drop Anchor's Data Attribute Value into Post Text Editor in Admin

Can anyone tell me how I can drop the contents of an anchor's data attribute into the 'edit post' page's text editor, using jQuery, instead of dropping the link text itself? I need to be able to drop ...
-1
votes
2answers
38 views

javascript not loading in wordpress

I originally posted this in the stackoverflow, but I believe it is better posted here as I am using wordpress and a wordpress function. I am trying to add the jquery cycle plugin (http://jquery....
0
votes
0answers
46 views

Wordpress Ajax with error

On my site, through a form I send/register same information in database, do a SELECT/query and return it! Return the last table saved in database, just that user just entered on the form (along with ...
0
votes
1answer
34 views

Move jQuery on *top* of footer

I am using this code by Peter Wilson to move jQuery to footer: function pwcc_jquery_to_footer( &$wp_scripts ) { if ( is_admin() ) { return; } /* Move jQuery to the ...
0
votes
1answer
17 views

Automatic add space if user enters number(any digit)

I have one input field in that I need to check that if user enters any digit then it automatic add spaces i.e. When someone enter a phone number like 0499287909 then in string should change the ...
0
votes
0answers
14 views

Pass JS VAR back Through AJAX

I have a PHP array that contains the post IDs of categories collected using AJAX that I need to pass back to be used in jQuery; Array ( [0] => Array ( [id] => 15 ) [1] => Array ( [id] => ...
0
votes
0answers
14 views

Realtime filtering of posts in blog view

I'm looking for a way to filter the list of posts by a search term. For example: There are 20 postings on the blog in total. In a search field you can enter a term and without loading a new page you ...
1
vote
0answers
50 views

Move jQuery and Migrate to footer?

I've seen this answer, but I'd like to move Migrate as well. I'm trying to move both jQuery and Migrate to the footer and change the jQuery to the CDN version. Here is the failed code I've tried (Why ...
0
votes
0answers
31 views

Disable Responsive Mobile Navigation Menu?

With my theme I currently have a 'hamburger menu' that slides in on a desktop screen, but with the responsive design, on a mobile or small screen, there is a dropdown menu instead at the top. (Cherry ...
-2
votes
1answer
89 views

How do I add a button to run some code on a page when the button is clicked

I have a this conditional code below and I'd like to know how to add a button that when clicked will 'run' the code indicated. I have no experience with ajax/jquery but I assume it is what is needed? ...
0
votes
0answers
10 views

Pulling in post ID into Live Edit functionality

Pulling in post ID into Live Edit functionality I've got a social media site built off BuddyPress, where we've built custom post functionality off ACF fields, and I need to tie in front-end editing ...
0
votes
2answers
44 views

jQuery.post() calling function with parameter

I have been searching around the web for this but it doesn't seems there's any topic like this (or maybe I am searching in the wrong direction). Currently I have a jQuery file which will retrieve 9 ...
0
votes
0answers
49 views

Ajax WordPress comment for latest version

Is there and latest and updated way to make a custom WordPress comment box to post comments thought ajax or without reloading the page. I am not understanding what is wrong.. the success is triggered ...
0
votes
1answer
62 views

Wordpress Jquery+scripts enqueue issue

I'm having some issues in loading a custom jquery slider into a wordpress site I'm working on: I'm not super proficient with theme development but I'm studying hard and I spent lots of days trying ...
-7
votes
1answer
50 views

show hide image script after 4 seconds [closed]

On my homepage I need a javascript/jQuery script to show our site logo image and close it after 5 seconds. Only when user visits the first time our site. No mouseover or clicks needed. Complete ...
0
votes
1answer
46 views

Contact form 7 issue with jquery - hiding/showing fields [duplicate]

I've followed a tutorial regarding how to hide/show Contact Form 7 fields using jQuery. I have used this before and it worked wonders. However, on a new site for some reason it isn't working. The ...
0
votes
1answer
98 views

“JQMIGRATE: Migrate is Installed” How do I find the problem code?

I have a site and since updating to 4.5 it has a very subtle display bug that seems jQuery related (full bleed images have a white border that snaps away into correctness when you resize window). ...
0
votes
0answers
20 views

clicking the next pagination, the last post was also in page 2 error

I need some help or explanation regarding pagination in custom post type, I'm using a theme, so there is a pagination readyset there is one problem, if i set the custom post type post per page into 2 ...
-1
votes
1answer
36 views

How do I load this jQuery to my wordpress page?

I hope you can help me, I've scoured the internet for hours and can't seem to make this work. I'm trying to follow these directions for using MixItUp: https://mixitup.kunkalabs.com/learn/tutorial/get-...