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

What to do after a wrong RewriteRule?

I have A Wordpress MU and following this answer I changed my root .htaccess placing this before the Wordpress loop RewriteRule / /subfolder [R=301,L] trying to have a different homepage. It didn't ...
0
votes
1answer
16 views

add bootstrap post slider with tabs

I'm trying to add a carousel with my post. UNder the carousel, some tabs with the post title. On click of the post title, it should change it the slide to display the related post. In " Static" in ...
0
votes
1answer
40 views

Prevent other versions of jquery from loading on static front page

This site is using cordillera which calls on /wp-includes/js/jquery/jquery.js?ver=1.11.2. The child theme contains a front-page.php which consists of: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...
0
votes
1answer
13 views

JQuery is not defined but jquery script is loaded in source [on hold]

I'm new to Wordpress and I'm trying to use JQuery on a static home page. I'm getting the infamous "Uncaught ReferenceError: JQuery is not defined" error, although in the page source the JQuery script ...
0
votes
0answers
17 views

jquery is loading js scripts with 1 script for a few sec a good aproach?

so..... I want to make a dynamic table from a mysql query and i've done it successfuly but... I dont like the idea off people being able to look at my script files. Is there anyway to avoid this? My ...
0
votes
0answers
6 views

Global Navigation for Multi-site Sub-sites Using jQuery

I'm looking to add the main site's main menu to the top of all sub-sites on a multi-site install. Requirements The menu should appear directly after body, above any site content, independent of ...
0
votes
0answers
16 views

Bootstrap Drop Down menu is not working

Bootstrap dropdown is working when i added the jquery( https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js ) in footer and by deregistering wodpress default jquery. When i disabling the ...
0
votes
0answers
16 views

Open Modal and load external URL in new tab

The theme CouponXL http://demo.powerthemes.club/themes/couponxl/ that is specific offers and discount coupons, clicking on a discount coupon (SHOW CODE) comes a modal window (from its own URL) and in ...
0
votes
0answers
10 views

Not show script code in widgets

Put the script code , but it does not appear, no matter which widget is . The code is a counter for visits. Putting it in the Visual editor remains empty. Any other code appears. <script ...
4
votes
1answer
139 views

Move Wordpress native javascript to bottom of page?

Checking my page in google page speed insights, it complains that there are some javascript that is blocking the rest of the page from loading. The javascript in question is native Wordpress scripts ...
0
votes
0answers
14 views

jQuery.suggest only suggestion is “0”

I'm trying to get suggestions in a text field with data from a database, inside an admin page. The only suggestion I get, no matter what, is always "0".. why? Relevant code parts the ...
0
votes
0answers
20 views

Display parent and child taxonomies in separate drop down select fields

I've used a piece of code from another question here but my second select field did not changed accordingly. Can anyone tell me what's wrong? Below is my code: My php functions: function ...
0
votes
0answers
14 views

How to add slider with description on images and (1/8,2/8,3/8) function [closed]

I'm building custom site on wordpress I created all i wanted except slider for galleries. I find this theme http://horizontalwp.com/preview/HWP/ and I really like their slider can anybody advice me ...
0
votes
0answers
35 views

Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn't work

I've added to the normal WordPress gallery popup (when clicking "Add Media" in the WordPress editor), in order to allow my custom gallery type to be selected (which interacts with / uses the main ...
0
votes
0answers
13 views

Adding fields to the media uploader with jquery listeners

So I have the code to successfully add a select field to my media uploader (gallery view) which is cool, but I also need to add some jquery listeners to that field. I'm using the ...
0
votes
0answers
14 views

how do I include a link when it was click and make button disabled forever

jQuery( document ).ready( function( $ ) { var counter = 1, element = 'input.edit'; $( element ).click( function(e) { counter ++; // for control debugging in console ...
-1
votes
0answers
25 views

how do I input the link after pressing the button

hi I have use this jquery code jQuery( document ).ready( function( $ ) { var counter = 1, element = 'input.dokan-btn.dokan-btn-theme.dokan-btn-lg'; $( element ).click( function(e) { ...
0
votes
1answer
94 views

Ajax not firing properly using Firefox, but works in Chrome

I'm working on a plugin that seems to be fine in Chrome, but is not firing the PHP script via Ajax in Firefox. It is driving me to distraction. Here are the code blocks that relate to it. First, the ...
0
votes
0answers
12 views

Theme Customizer not recognizing Widgets

First of - i do not know much coding, though i do learn quickly and am looking to get this issue sorted ASAP. I am sure it is something simple. When i load up my site in the Wordpress Theme ...
0
votes
0answers
15 views

Share jQuery plugins across multisite

I often use the same jQuery plugins (fullCalendar, dataTables and such) and would like to share them among the different sites of a multisite installation. Is it possible to create for example a libs ...
0
votes
0answers
23 views

Conflicts with jQuery

I wrote a plugin that works fine, but in one site I get jQuery loaded twice even if I don't enqueue it myself (I guess the theme loads it also). I tried to deregister it and than again enqueue but ...
0
votes
0answers
27 views

How do I insert jquery snippet into Wordpress?

I have searched all over but I apparently am not understanding how to put this jquery snippet I have into Wordpress. If someone could help me get this working it would be appreciated. jquery snippet: ...
2
votes
1answer
18 views

How to listen to color changes on the color picker?

I am trying to run some custom jquery function every time the colorpicker's color change. The colorpicker is include as part of the WP core. I have been looking at the JS code, but I can't figure out ...
0
votes
3answers
29 views

Stylesheet won't load even when linked

I don't know what I'm doing wrong here. I created a page with accordians, the jquery script loads just fine but when I link the CSS stylesheet, no CSS shows up. It is not an external stylesheet, I ...
0
votes
0answers
16 views

Theme Load Error

For 2 days I'm struggling and hitting my head to find out the solution but no thing. The website isn't loading images on front-page and news-ticker not working at all. I tried to reuploading the ...
0
votes
1answer
30 views

How to Add Jquery FullCalendar in wp plugin in admin

wp_register_script('moment', plugin_dir_url( __FILE__ )."js/moment.min.js", false, null, true); wp_register_script('fullcalendar', plugin_dir_url( __FILE__ )."js/fullcalendar.min.js", false, ...
-2
votes
0answers
29 views

Convert My Code's In To Metabox

I have the following PHP: // define variables and set to empty values $gname = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $gname = test_input($_POST["gname"]); } function test_input($data) ...
0
votes
0answers
30 views

jQuery conflict in WordPress, works fine in HTML

I've been working on a design where it worked fine in HTML, but is having a massive jQuery conflict when using within WordPress. Here's the entire script.js file first: ...
0
votes
0answers
14 views

is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript

Is there a predefined JavaScript function that can be use to check whether the site is being previewed in the Customizer which returns true if it is or false if it's not, just like what ...
0
votes
0answers
17 views

wp_list_table, jquery get the value of the checkbox

Hello i'm trying to make inline edit for my wp_list_table. but i've hit a brick wall. the thing is that each elemement/td is made up off 2 class column example: <td class="name column-name" ...
0
votes
3answers
56 views

jQuery no conflict

I just want to once and for all get some clarity on jQuery within Wordpress as I can never remember from one project to the next how things should be done. The particular example I am talking about ...
0
votes
1answer
26 views

Trouble with Wordpress Ajax Login System - 302

I'm trying to create a simple Ajax Login system with Wordpress. Unfortunately, every time the "wp_signon" function is fired, my system failed and the only information I have is this one : POST ...
0
votes
0answers
58 views

Youtube Iframe Api play one video at a time

Below is my code and only video 1 can stop video 2 but video 2 can not stop video 1. I want one video to play at one time. What could be the reason and i am using shortcode and below is my code in ...
3
votes
1answer
80 views

Modify Custom Field in Media Library using JavaScript

I've added a custom field into my media attachments: function set_image_data( $form_fields, $post ) { $form_fields['text_color'] = array( 'label' => 'Text Color', 'input' ...
0
votes
1answer
21 views

Making jQuery .change() event persistent after widget save

I'm creating a custom widget that uses a select element with a bunch of options and a simple jQuery function to trigger the visibility for some <div>s below it based on the selection, through a ...
0
votes
1answer
37 views

JQuery UI not loading without explicit loading of jQuery

I know there are a lot of questions regarding this issue, but I can't figure out mine here. I'm trying to load the whole jQuery UI ( Actually I need only the Slider ) and I successed. This is my ...
0
votes
1answer
26 views

wp_list_table trying to make inline edit

I'm very new to javascript and jQuery however I've jumped into trying to make inline edit for my wp_list_table but find it difficult to catch the class for some reason. the classes for the column I'm ...
0
votes
1answer
39 views

Multiple Media uploader output to input

I'm trying to select multiple images then insert the IDs (comma-seperated) into a text field. Here's my code, but it picks the first image ID only: jQuery(document).ready(function($){ var ...
0
votes
1answer
49 views

Jquery function working in Dev Console but not otherwise [duplicate]

Can someone help me utilize native wordpress jquery to run my function? The only working test i have done is to load an external jquery resouce via the chrome dev console and then add my function to ...
0
votes
0answers
16 views

A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control

Are you familiar with the Customizer core $wp_customize->get_setting( 'header_textcolor' )? It will become available once you add_theme_support( 'custom-header' ). It have two controls, one is a ...
0
votes
1answer
29 views

Creating a Tabbed Widget

I have setup my widget to retrieve data from custom post types. I am using WP Query to show the data, but it still not showing. I have also setup the file in a gist for easier lookup ...
0
votes
1answer
57 views

How to return multiple arguments from AJAX callback function

First of all, please don't mark the question as duplicate as I didn't ask how to send arguments with ajax request. I want to receive some extra arguments on ajax success. My callback function will ...
0
votes
0answers
41 views

Portfolio filtering menus script in Wordpress and JQuery

This is the page: scharc.com/en/projects Let's say I select the Department, then the Field of Expertise and finally a Location, for example. Right now deselecting the Location doesn't free any ...
0
votes
0answers
27 views

How to share a single image with lightbox 2 image gallery

I am using on my website the last version of addtoany and the last version of wordpress. I implemented it on my site, and it works fine without any problem Here i share one of my image gallery. As you ...
0
votes
1answer
62 views

Target WooCommerce submit button

I am trying to hook into the WooCommerce submit button and applying some custom jQuery scripts before submitting the order. However,I can't seem to target the submit button on the checkout page. I ...
0
votes
0answers
37 views

How to get attachment's custom url using custom media uploader

I'm wondering how to retrieve attachments's 'Link To' field when an image is inserted into a custom field using custom media uploader. And here's the code used: var frame = wp.media({ ...
0
votes
0answers
23 views

login_enqueue_scripts not working with javascript

I have this little modification to the login form: // Load Jquery before login styling add_action('login_enqueue_scripts', 'my_login_jquery', 100); function my_login_jquery() { ...
1
vote
1answer
76 views

window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes

I have added two custom meta boxes to a custom post type. One is to upload an image to be stored in a custom field value for a "headshot" and the other is to upload an image to be stored in a custom ...
0
votes
0answers
18 views

WordPress - jQuery - Form [duplicate]

I've checked previous answers in this forum related to my question but none of them solve my problem. Trying to run a jQuery script in WordPress in conjunction with a form I've created (not a ...
0
votes
2answers
303 views

Show success or error messages in Ajax response to Wordpress custom registration form

I have this custom form inside a Wordpress page template <?php if(!is_user_logged_in()) { if(get_option('users_can_register')) { if($_POST){ $username = ...