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.
2,374 questions
0
votes
2
answers
104
views
Output parent/child categories and posts in that parent/child hierarchy
I'm using the WP_Query loop to output all categories and their posts into a jQuery accordion, using the category name as the accordion header, with posts from each category inside each accordion.
The ...
0
votes
2
answers
54
views
Insert selection from filter everything pro into gravity forms field
I have a couple of different things happening on one page, and I need to have the selections pulled from an elementor filter form to populate a gravity forms field (ideally a hidden one).
I have this ...
0
votes
1
answer
145
views
Issues with WooCommerce: jquery.blockUI.min.js
My site works very slow and it's impossible to start editing in Elementor. The issue I've found, that I'm not sure if it's causing is:
MESSAGE TYPE: (Javascript) TypeError
PROBLEM DESCRIPTION: t....
0
votes
0
answers
27
views
How do I ensure that the URL parameters are updated correctly when multiple filters are applied
I am writing a product filter, and ran into this issue.
I have 2 different attributes of my product filter:
Tilt -- as a checkbox with "Yes" or "No", and Multibrand Compatible -- ...
0
votes
0
answers
32
views
Set Featured Image Grab Image ID or Image File Name
Is there way of to grabbing "Image ID" or "Image File Name" after attaching a featured image (post-thumbnail) to page?
I am looking to capture that ID so that I can validate the ...
0
votes
0
answers
47
views
How to save Wordpress post and attachment images from front end using media library?
I'm developing a wordpress page to submit a post and its images attachment. I don't use input type="file" instead use jQuery wordpress media library.
frame.on("select", function (...
0
votes
0
answers
34
views
allow multi carousel in same page
I have this code for slider, i need help to edit it to allow multiple slider in same page.
var all_divs = $('.px-carousel-container .px-carousel-item').length;
var i = 0,
n = 0;
let ...
1
vote
0
answers
141
views
slider i want move 4 images every button click
I have this code for slider button, i want move 4 images every button click. and make the button not active when all images slides if right or left. (sorry if my English not good)
$(document).on('...
0
votes
1
answer
153
views
Pull total post count for child category and parent if term ID
I have a mess of code that works, however I know its a mess and im sure there is a neater way of doing this.
I am trying to get the child category to display under the parent category and for the post ...
1
vote
1
answer
73
views
Ajax response from Media Selection does not update ALL information more than once
I don't quite know how to explain what is going on, or how to title my post but I'm going to do my best.
I'm making my first plugin for WordPress, which is very simple.
Allow the user to select a file ...
0
votes
0
answers
81
views
JQuery UI Autocomplete showing as bullets
The JQuery UI Demo page for autocomplete has a nice looking search box and drop down. When I implement it in my plugin, I end up with a bulleted list. How do I get my drop down of suggestions to look ...
1
vote
1
answer
81
views
Translating the "Everything" filter menu in Quicksand jquery file
I have been using QuickSand Jquery to display my WordPress portfolio.
Everything is working well. I just added the polylang plugin and would like to be able to translate the first item of the filter ...
0
votes
0
answers
82
views
JQuery UI Autocomplete/Autosuggest Wordpress
I am creating custom search bar with category dropdown in my wordpress woocommerce site but auto-suggest not working showing response array 0 in console.What's wrong with the code? I am a beginner i ...
1
vote
0
answers
158
views
Custom plugin translation not working
I made a plugin that contains 2 custom gutenberg blocks created with react and jQuery (for some front-end stuff) and I'm having troubles translating them. There are no translation strings inside the ...
0
votes
3
answers
162
views
Help with AJAX request
I am creating an events plugin with a commenting section for each event. I am able to save each comment, but the problem I'm having now is that I am taken to admin-ajax.php which is blank. When the ...
1
vote
0
answers
354
views
How to add new ACF repeater row after removing all rows using jQuery/Javascript
I am creating a custom ACF Field within a page edit screen which I have added a div container, outside the container is 3 buttons. Add text block, add image and save.
I also have a repeater field (I ...
0
votes
1
answer
209
views
Wordpress Media Uploader not displaying image that has just been uploaded
I am trying to implement a custom WP Media uploader within a plugin. I want multiple images to be uploaded also.
I have the following javascript to open the media uploader. The modal opens fine and ...
0
votes
1
answer
346
views
How do I remove/hide embed excerpts from posts
How can I remove post excerpt from internal links that are embed as posts to custom WordPress page.
https://prnt.sc/6e07tjSht5i7
I cant do it with classic CSS styling , I guess due to the iframe/embed ...
0
votes
1
answer
3k
views
Injecting CSS into Iframe
I have added an iframe to my website.
Within the I-Frame is an area which is not required and I would like to hide.
I have tried to inject CSS into the i-frame using
Functions.php
add_action( '...
0
votes
1
answer
234
views
How to change the text of Publish Button
I am trying to change the text of the publish button to save.
I could change the text.
BUT, When I click Status Edit button and OK button, it change "Publish".
How can I fix this?
This is ...
0
votes
0
answers
65
views
get_post_meta returns on side but it doesn't return on bottom of admin page
I have added a custom image upload option in custom CPT page and here is the screenshot -
The image is showing well in side bar of admin page after updating a post, screenshot-
But when I add that ...
1
vote
2
answers
681
views
CF7 Populate Text Field Based On Checkbox Checked
I need to be be able to auto populate a text field with "one-hidden" when a customer checks a checkbox but so far examples I've found online do not seem to work or im putting them in the ...
0
votes
1
answer
816
views
How to access Elementor-navigation-elements via jQuery
I am currently working on a custom WordPress-Plugin in which I need to extend the menu of the Elementor-plugin (the menu on the left when you edit a page or post via Elementor). For some reason I am ...
0
votes
0
answers
99
views
Jquery with Variable Name when using WP_Localize_Script
When using wp_localize_script()
How do you write jquery/js with a variable variable name.
This is normal:
$('#goodword').focus(function(){
$('#goodword').css('background','inherit');
}).blur(...
0
votes
1
answer
1k
views
slider wont load unless you scrolldown on mobile, slick.js carousel
I use slick.js for my carousel. Everything is working fine on desktop but in my mobile I have this weird problem where the slider doesn't load correctly until I scrolldown. Have anyone here also ...