A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [jquery]

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
16 views

Change AJAX filter from POST to GET for URL Parameters

I have a well defined AJAX filter, in two parts, one for a load more button, and one for a selection of drop down filters. Both reload a list of properties on the front-end in AJAX, and work together ...
0
votes
1answer
16 views

Slide toggle Jquery UI

I've been looking for ways to make an enqueue of the right library of jquery ui but i dont see there is one for that, any ideas of how to use this without getting error? jQuery('#menu_desktop'...
0
votes
1answer
25 views

Wordpress sound bell when new data will add

I'm working to add a bell notification when any new data row inserted in the attached table this will give sound bell. (very similarly when we receive new message we get notification sound bell on ...
0
votes
0answers
15 views

WordPress Jquery with heade and footer sritp plugin

I have been trying to solve this for literlally weeks. I have inserted jQuery into the header section with header and footer script plugin. The problem is that WordPress ignores all of this code. As ...
0
votes
0answers
7 views

Customize wp forms plugin to include repeater fields [closed]

I have created a form in wp forms plugin. I would like to repeat a group of fields when a user press "+" button. How to customise wp forms plugin to include repeater fields.
0
votes
0answers
11 views

How to fix WordPress Ajax call loading endless? [closed]

I am currently developing a WordPress site called https://fishnmeats.com/ and I am having issue with it's Ajax call ... Because if we click on any action they loads Ajax for live time update is not ...
0
votes
0answers
7 views

Cannot prefill hidden Ninja Forms fields

If have a page where you can select a specific broker from a list. The broker name has to be filled in into the hidden field in Ninja Forms. if(jQuery('#broker-list').length) { //checks if the list ...
0
votes
0answers
15 views

error: n.imagesLoaded is not a function

I have converted a template to wordpress format. and added styles and scripts in functions.php. but i keep getting error snow.min.js:11 Uncaught TypeError: n.imagesLoaded is not a function at ...
0
votes
0answers
14 views

ACF Custom user field in search query

I have created some field in user section, Now i want to search user by custom field. Like Phone of City Name. While search by first name and last name is working fine by could not get user by phone ...
0
votes
1answer
22 views

jQuery AJAX url wit variable

For an AJAX call I try to get the url from a variable jQuery(document).ready(function($) { var url = 'test'; $.ajax({ 'url': url, 'data': ({todo: "food-page_catfetch"}), 'success': ...
0
votes
0answers
19 views

Woocommerce - Jquery | Remove the required attribute from some checkout input fields based on the selection from a select field

Hi everyone I'm working on the code of a plugin that I downloaded, the goal is to hide some fields of the Woocommerce billing checkout form based on the selection of a select by the user, the ...
0
votes
1answer
20 views

Implement jQuery Smart wizard

I want to implement jQuery Smart Wizard to create a form that will let the user input some information. It usually need that all the html is inserted on one page, but I don't know if this is the best ...
1
vote
1answer
23 views

Modifying a .js Function for Print [QZ Tray, WooCommerce POS]

I'm sure this is an easy question, but I'm struggling to understand what I'm missing here. Skip to the bottom for the actual questions. Background I'm modifying a Wordpress POS plugin to work with ...
0
votes
1answer
21 views

Foreach-generated custom tax queries, each with an ajax “Load more” button

I'm looping through custom taxonomy terms to create a WP_Query for each term, then displaying the posts on the front-end. I'm also attempting to adapt this helpful tutorial(and accompanying comments) ...
0
votes
0answers
11 views

Can't make lazy load for my site, help!

I am trying to make a custom AJAX lazy load, load more posts system on scroll but not able to make it. As I am working on my custom WordPress theme, it is hard for me to make lazy load while keeping ...
0
votes
1answer
15 views

React to AJAX adding to the page

How can I have my JavaScript run every time AJAX finishes adding content to the page? My JavaScript file loads and runs, but only on first page load. I'm looking for the equivalent of Drupal....
0
votes
1answer
130 views

Wordpress core jquery version file not loaded?

I try to put a simple <textarea> with an emoji picker (https://github.com/mervick/emojionearea) in my wordpress site (with buddypress installed, actually I put this in buddypress messages). The ...
0
votes
1answer
31 views

ajax_object is not defined when ajax calls the function

When I call a function in PHP using ajax I get Uncaught (in promise) ReferenceError: ajax_object is not defined html2canvas(document.getElementById("primary")).then(function(canvas) { ...
1
vote
2answers
38 views

Stop theme's jQuery function from running

In .js file of a theme, there are the 2 events using one function: $j( window ).on( 'load', function() { functionName(); } ); $j( document ).ajaxComplete( function() { functionName(); }...
0
votes
1answer
18 views

WordPress REST endpoint not able to reach with jQuery

I have REST endpoint in WordPress and I am trying to ping it with jQuery from the fronted script. This works when questioned via browser: http://example.com/wp-json/wpc_ylp/v2/videos/ But it does not ...
1
vote
1answer
23 views

Asking popup for delete post in Wordpress [closed]

Is it possible to add popup when i will delete post in Wordpess for better safe? Any plugin or code ?
0
votes
0answers
24 views

Loop through Wordpress API response errors

I am having trouble parsing my AJAX response from my WordPress API that my hybrid mobile app is making. Below is (one of many ways I have tried to parse the response all of which have not worked): ...
1
vote
1answer
28 views

js file in root loading without <script src=

This is my first time using a js file. It controls the hover and display of images in a php menu file. They are both in the root directory. I have not referenced the file in the menu.php file at all ...
1
vote
1answer
37 views

How to show jquery popup only in one page or once?

i have this jquery popup but i need to show it only in the homepage. Here is the code: $(document).ready(function(){ $("#thover").click(function(){ $(this).fadeOut(); $("#tpopup")....
1
vote
0answers
13 views

Hierarchical menu nesting problem with jQuery targetting

(Wordpress's menu use the form <li class="menu-item-has-children"> Item <ul class="sub-menu"> <li> Sub Menu Item</li> ... </ul> </li> ... which means ...
1
vote
0answers
29 views

How Can I Add “New” Lazy Load Images To NewsPaper WP Theme? [closed]

I have NewsPaper WP theme. I added new widget for my theme, but new images doesn't support lazy load images. How can I add NewsPaper's lazy load system to them (with jQuery)? Thanks in advance. 🙂
1
vote
1answer
29 views

How to use datepicker.min.js?

On my site I load datepicker.min.js <script type='text/javascript' src='http://xxx/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4'></script> <script type='text/javascript' ...
0
votes
0answers
30 views

TinyMCE code works as Theme Template File But Not as Short Code

I have a strange problem I'm hoping you can help me with. The following code works fine in a template file for a theme. But it does NOT work as code in a class in a plugin for a short code. I am ...
-1
votes
1answer
21 views

Google yolo one tab signup plugin avilable in wordpress? [closed]

Can you please tell me wordpress has Google yolo one tab signup plugin?
0
votes
0answers
41 views

How to reload a php script, using AJAX and jQuery

Good evening, im a beginner in WordPress and i'd like some advices. I have a php script that load some articles thumbnails randomly according to some parameters. <div id="logos " class="slide ...
0
votes
0answers
25 views

Ninja Forms for WordPress DatePicker opitons

I am trying to set the pickWholeWeek pikaday setting to true, for the Ninja Forms plugin for WordPress. below is the js, doesn't seem to work, any clue as to what I'm doing wrong? (the js file is ...
0
votes
0answers
19 views

Updating Jquery object with newly created elements after AJAX call

My question is pretty much exactly what the title says: 1.) I generate Page "A" which runs a JQuery command that creates an object of all the items with a class of ".pointer". This is key as there ...
1
vote
1answer
31 views

How would you update a frontend form with AJAX

I'm trying to build me own frontend AJAX updating screen mirroring interface. I have a very basic form: <form id="mblocation"> <input type="radio" name="mb_user_location" id="...
1
vote
1answer
20 views

hover image appears below placeholder instead of overlayed

I used padding-bottom calc to stop my text jumping around while the placeholder loaded. This worked, however the hover image which is supposed to display over the top of the placeholder, now appears ...
0
votes
0answers
23 views

Wordpress Ajax not returning Response

I have an ajax call which is working perfectly but is not returning any response below is how i registered my scripts wp_enqueue_script('wcp-signup-custom-js', WCP_PLUGIN_URL . '/WCP/FrontEnd/...
0
votes
0answers
65 views

Wordpress forbidden 403 on delete in production vs local environment

i build a system that allow the user to delete post by ID with wordpress API. this system works fine on localhost, but after i uploaded the site to production i can't delete the post all i get is an ...
1
vote
1answer
100 views

combine Code 1 with Code 2

Code 1 - uses wp_list_categories to list product categories in columns of x categories up to a total of y, with a link to view all categories if there are more than y. Code 2 - Later realising i ...
0
votes
0answers
27 views

Why jquery nested repeater inner create button initiating inner repeater as well as outer repeater

Here is my php file code <div id='immunization_records_list'> <div class="container immunization_records_list_container p-0" data-repeater-list="immunization_records_list"> &...
0
votes
1answer
32 views

What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?

I'm working on a plugin that takes $content for a post and alters some of the HTML. Seems there are two common ways to accomplish this in WordPress - using jQuery or using PHP's DOMDocument. I'm ...
0
votes
0answers
7 views

disable block of dates in query with conditional logic

I need to add 3 more disabled dates to each booked range my calendar where there booking range is disabled before. Like i have class fully_disabled class added to all blocked date range, i want to ...
0
votes
2answers
39 views

jQuery works instead of $

I am using $ in my custom js file in a wordpress child theme. But it says $ is not defined. But jQuery works fine. What is the reason? Is it because $ is used in newer version of jQUery and WP uses ...
0
votes
0answers
29 views

How to use Polylang strings in Jquery

I have problem with my theme. I'm making simple hide/show component in JS. const button = $('.button-hidden'); button.on('click', function (e) { let content = $(this).closest('.columns'); ...
0
votes
1answer
42 views

Wordpress colorpicker save both hex and RGB

Trying to get both the hex and RGB value of a color from the native color picker in Wordpress, user chooses the color via a custom metabox in the admin. Just need to save both values as meta for re-...
0
votes
0answers
72 views

Jquery no more loading, load-scripts.php not found (404)

When I open my wordpress website admin panel jquery is not working anymore (it worked yesterday and I don't see what I changed that can explain that). The first javascript error I have is GET https://...
0
votes
0answers
17 views

Show More Show Less - Not Working

There a 'load more/load less' function running on this page which I'm attempting to debug. https://maes-mynan.cogitoprojectx.com/holiday-homes/the-llewellyn-lodge-lodge/ You can see it the section ...
0
votes
0answers
67 views

jQuery - Display product field based on quantity input

I am trying to display a value based on woocommerce quantity input and i'm using the following jQuery script. <script> jQuery(function($){ var form = 'form.variations_form', selected =...
0
votes
0answers
45 views

wp_ajax_ 400 Bad Request

Trying to run a ajax request back to a function and keep getting a 400 error. this is the code below wp_register_script('frontend_js', plugins_url('/js/frontend.js', __FILE__), array(), false, ...
0
votes
0answers
37 views

How to use script in Wordpress installation?

I have a static HTML web page that I would like to recreate on a Wordpress website. The page has a fake survey with a series of questions. Users respond by clicking on one of several buttons which ...
0
votes
1answer
41 views

WooCommerce - Reset quantity input field when variation changes

Is there a way or a plugin to reset quantity input field every time a user changes the variation? I searched but i didn't find something similar or any hook. I tried the following jQuery event but it ...
0
votes
0answers
14 views

How can I make the sticky pricing table in Divi theme without plugin?

I need to make a pricing table top row sticky relative to that pricing table main div like this Demo with javascript code or jquery code. I am using Divi theme where CSS position sticky is not ...