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
3answers
197 views

Full width images within post content

The content of the post is contained in a div which is centred in the page and thus any images in the post would be constrained to the width of that div.The image below illustrates what I would like ...
-1
votes
1answer
32 views

CF7 Add a read only attribute to an input field

I have a function that validates an input field if a checkbox is checked: jQuery("input[type='checkbox'][value='Internet Search']").click(function(){ if ...
1
vote
1answer
144 views

AJAX nonce with check_ajax_referer()

I want to use check_ajax_referer() to verify a WP_nonce field using AJAX. Here you can find my html element. <input type="hidden" name="login_nonce" value="<?= wp_create_nonce('login_nonce'); ...
0
votes
0answers
50 views

Onclick Save Text In Input Field

Currently, I have a front-end form on my client's wordpress site that allows users to create a post. I'm using the pods plugin to create cpt, custom fields, forms, etc. I have several input fields in ...
0
votes
0answers
35 views

Show error if form input field is blank

Hi i am creating a popup plugin in WordPress in which i want to disable my button which is outside form disable until my form fields are empty. I am not using submit button because after clicking ...
0
votes
0answers
40 views

Using gfapi causes admin-ajax to cancel

Perhaps this is better suited for Gravity Forms support, so I'll also look into asking there...however I'll post here just in case anyone has a solution. We're using Gravity Forms to handle ...
0
votes
2answers
246 views

Always the Latest google jQuery instead of default Wordpress jQuery

Im using successfully the google CDN jQuery files instead of the built in files from Wordpress with the following code in my functions.php: function register_jquery() { if (!is_admin()) { ...
0
votes
1answer
89 views

Use Media Uploader on Multiple Images on same page

I have multiple image user meta fields on the same page and am using a media uploader jquery script to set the URL as the text fields value when the image is clicked. Works ok on one image field but ...
1
vote
2answers
273 views

How to use WordPress (PHP) functions in AngularJS partials files?

I am using AngularJS to load a list of my WordPress posts, however I can not get any of my PHP functions to work with my partials file. I've tried using something such as search.php instead of ...
0
votes
2answers
48 views

Disable submit button order

Here is a snippet of my code <?php echo apply_filters( 'woocommerce_order_button_html', '<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" ...
0
votes
0answers
34 views

WooCommerce - My Account - jQuery not working?

I've add some pagination to the my account page to paginate the order history. Everything works great except when I click the "Edit Account" tab the navigation bar I created for the order table is ...
0
votes
0answers
41 views

jQuery hover events within Ajax loaded div

I've built a custom theme for a WooCommerce site I am working on. I have recently added the Advanced AJAX Page Loader plugin to load all elements within the #content div. I am now having 3 issues. ...
0
votes
1answer
69 views

WP Media Uploader modal conflicts with Bootstrap modal

I was creating a form in a Bootstrap Modal to allow users to create new posts from the frontend. Everything seemed alright until I wanted to upload a file to the media library or choose one already ...
-5
votes
3answers
183 views

How do I send this form's output to a new Wordpress page?

On this site, I have the following form which allows a visitor to select from a choice of mortgage calculators to use: <select id="dynamic_select" name="cars"> <option ...
0
votes
1answer
60 views

JQuery and Javascript to pan image

I am trying to implement a panning effect on an image, by following this tutorial. However, it's not working and I think it may be due to the way the javascript is being referenced. The image that I ...
0
votes
0answers
19 views

How to hide a Control in the Customizer?

I know contextual controls hide if for example the user navigates from the viewer certain pages. But how can I achieve hiding a control under this scenario: There is a type Select Control with an ...
0
votes
0answers
48 views

how to make video autoplay on website in mobile using revolution slider

I understand that the video can't be played on mobile devices because of the ruling of the mobile data and other requirement. i also read comments on other articles on support. but i read some ...
0
votes
2answers
99 views

Flexslider won't work with WordPress' jQuery | Dependencies

When I try to use the Flexslider with 'built-in' jquery, the Flexslider won't work. When I use my own myjquery file, It works as if nothing ever. Do I always have to use my own jquery file even ...
0
votes
0answers
181 views

'conflict with another plugin which overwrites jquery' problem

Some times after refreshing or when my website is loading it, a dialogue box appears saying 'conflict with another plugin which overwrites jquery' Please provide me some solutions to get rid of this ...
1
vote
1answer
79 views

angularjs not displaying all posts

I learned about angularjs today and I am trying to create a page for my search results so that I can be able to create facet filters. Currently I have a page template with the following code -- ...
0
votes
2answers
138 views

Woocommerce checkout field maxlength, make input number field only (postcode)

I've been struggling with this for a few days now. What i want to do, it to limit the Postcode/zip fields to 4 numbers. So, to add a maxlength and a type="number" to those fields. Things i've tried ...
1
vote
1answer
28 views

Returning content via jQuery without footers on admin pages

I am writing a plugin (github link) that allows the user to upload files in the admin-pages of wordpress. I am running into an issue however: I created an upload form that essentially posts to ...
0
votes
2answers
131 views

Wordpress can't get jquery/unslider to work [Solved]

I don't know what I'm doing wrong... I'm using the starter timber theme... I'm trying unslider to work with my theme... indicated here is somehow a proof I did right in putting scripts from the ...
1
vote
1answer
39 views

Show post in slider

I am working on wordpress project .I want to show the post details in such away that the first four post thumbnail would show on the top and show the content of first post below, after clicking on ...
2
votes
0answers
65 views

Color Picker (iris) in widget - refresh when edited in Customizer

I have added the WordPress Core color picker (iris) to a widget I developed, but when you edit the color, there is no change triggered. As a result, the iframe (live preview) for the Customizer does ...
0
votes
2answers
20 views

Why do I get jQuery reference error / undefined when changing name of plugin file?

I have two sites which I've copied a plugin from the first site and then altered the plugin and changed the name of plugins directoy and class name. Like from: old_xplugin In the root of this ...
1
vote
0answers
25 views

WP Media uploader loading only once in options page

A weird issue happening with me which I am unable to fix. In my theme options page, I added options to upload images one for logo and another for backgroud image. Here is my HTML <table ...
0
votes
1answer
84 views

Double jQuery loaded

Please help me to understand why this works. I have loaded my jQuery in mu functions.php-file like this: <?php function load_jquery() { wp_enqueue_script( 'jquery' ); } ...
0
votes
1answer
50 views

Add a downloaded JS file to WordPress

I have a very large table (horizontally speaking) on my webpage and I added a scrollbar using the "overflow-y: auto;" property on my CSS, which does what I want. The problem is that this table is ...
0
votes
0answers
37 views

how to display term name angularjs

I've recently learned about angularjs and I am trying to display a term associated with a specific custom taxonomy. So far this is what I've tried in my partials file - <div ng-repeat="post in ...
1
vote
0answers
82 views

Passing jQuery value using Ajax to a page template

I have the following jQuery code:- jQuery('.fancymember').on('click', function() { var member = jQuery(this).parent('div').parent('div').find('.test').val(); var dataString = 'member='+ ...
1
vote
1answer
6k views

Proper way to load a single post via Ajax?

I'm loading single posts via Ajax into a div that I have set up on my index page. Everything is working fine in this regard. I want to use history.js to push/pop the state so if users enter ...
1
vote
0answers
107 views

WP set auth cookie using Ajax is not saved to browser

We are creating an external dashboard that uses Wordpress data, obviously, we use WP REST API v2 We want total separation from the traditional WP Dashboard, but we also want to log in user "behind ...
1
vote
2answers
32 views

Wordpress Multiple Navigation bars

This is more of a 'Is it possible question" I have a home page which has a full width header and a transparent Navbar, when you scroll this Navbar changes to white. On all my other pages I want this ...
2
votes
1answer
69 views

Add colorpicker to featured image

I'm trying to add a colorpicker to the featured image meta-box. Here is some background: I use the featured image meta-box to place parallax background images. Because a user is allowed to place text ...
1
vote
0answers
96 views

How to use jPList with search results

I've been working on a real estate site and looking for a way to refine search results page + update pagination, instantly, like the big name sites (ie hotpads.com, trulia.com, hotels.com, etc.). ...
-2
votes
1answer
40 views

How to Add jQuery cod in wordpress [duplicate]

I would like to add this small jQuery code in my wordpress website but no way. $(document).ready(function(){ $('.flex-active-slide').append('<div class="playoverlay"></div>'); }); I ...
1
vote
2answers
338 views

show/hide div with simple jQuery script [closed]

I want to show/hide contents by using radio buttons on a WordPress page. When a user clicks on the radio button with label "red", the corresponding div with the class "red" needs to show up. Here's ...
2
votes
2answers
2k views

Can I include Javascript/jQuery in a page?

I'm extremely new to Wordpress, and I've offered to help out with a project that uses it. In a new page I'm creating, I need to use javascript/jQuery to write out the html dynamically - it doesn't ...
0
votes
1answer
30 views

File not enqueueing

I hate to add to the multitude of "script not enqueueing" questions, but I can't seem to figure out why my "tablesorter" scripts won't enqueue. The other script (customsjs) in the same directory is ...
1
vote
1answer
81 views

WordPress Ajax problem with undefined url

I have problem with wordpress plugin - in jQuery.ajax part, the ajax_object (url: ajax_object.ajax_url) is undefined and I don't know why. I cant recieve correct code from my php plugin, but if I ...
0
votes
2answers
1k views

admin ajax php success returns 0

I have looked over many posts on here and other websites and nothing I do seems to work. What I am doing is, I have a custom template file and inside that file I have a div that I want to populate ...
1
vote
2answers
50 views

Add a row on clicking each post featured image

I have to add a row that (containing the content of post) below the post thumbnail on clicking thumbnail. I have done it by using this but it affects the adjacent post thumbnail.I want that a ...
0
votes
0answers
60 views

WordPress Meta Box + WooCommerce - Display for specific product type right away?

So I've created a custom product type 'MY_PRODUCT_TYPE' and a meta box and that displays for this product type: function MY_PRODUCT_TYPE_meta_box($post_type) { $post_types = array('product'); ...
0
votes
0answers
53 views

Customizer live preview doesn't work

I've added an upload image field to the customizer using the following code: In customize.php: $wp_customize->add_setting( 'header_logo', array( 'default' => '', 'capability' ...
1
vote
2answers
92 views

Why is my ajax call refreshing the page?

I'm attempting to upload an audio file via AJAX form. Here is my HTML in the profile-edit template. <form method="post" id="my_upload_form" action="" enctype="multipart/form-data"> <input ...
0
votes
0answers
70 views

Using Custom jQuery Datepicker for Persian Calender

I'm working on a website for hotel room booking. I'm using a theme and a plugin that goes with it. The plugin has booking feature but I need to change the datepicker to Persian datepicker. I've found ...
0
votes
1answer
65 views

Problem with adding animated effect on site-title

I have to add animated effect on sidebar widgets and site title. I have been using "http://www.web2feel.com/tutorial-for-animated-scroll-loading-effects-with-animate-css-and-jquery/" and ...
0
votes
1answer
1k views

registering new jQuery after wp_deregister_script() not working

I have the following in my functions.php and it doesn't seem to load jQuery. If I remove the wp_deregister_script() line it appears to load the wordpress included jQuery and not the one I have ...
0
votes
1answer
81 views

WordPress Google Maps in Custom Theme

So I'm building a custom theme and implemented the Google Map API so I can give it a cleaner feel and so on then the normal Google Map. I've run into a problem when implementing my Marker as I ...