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

Strangely unclickable labels (of checkboxes) AND jQuery not working in this form

So i have this plugin for wordpress "wp job manager", and in the search form there are some checkboxes (with proper labels - label for etc) but the labels are not clickable, also they do not update ...
0
votes
1answer
16 views

Hide navigation menu on page load using jQuery

I'm using the theme Divi from Elegant Themes and I am trying to hide the main navigation menu when the page loads. I then would like for the menu to load as I scroll as seen here ...
0
votes
1answer
36 views

jQuery script isn't posting to database

This is a jQuery script I'm working on to post inputs to a database, assuming the user submitting the data is logged in, and hasn't made an existing entry for the item the user is submitting data for. ...
0
votes
0answers
18 views

How can I add jTable in admin page?

I am really having a hard time to integrate jTable ang jquery-ui in my plugin's admin page, can somebody help me, I already tried adding it through admin_enqueue_script but still no luck. I've tried ...
-1
votes
0answers
8 views

Use Hero Carousel to display featured post carousel [on hold]

I am new to Wordpress Development and I need a few pointers. How can I use Hero Carousel to show featured or latest post in my theme's main page.
0
votes
2answers
26 views

Why does javascript works only if logged in?

I'm trying to implement a simple script: jQuery(document).ready(function($){ $(window).scroll(function(){ if($(window).scrollTop() >= $('#masthead').outerHeight()) { ...
0
votes
0answers
22 views

How to get attachment id as soon as it is uploaded through media uploader in jquery?

Using jquery, I am trying to get image attachment id of all images requested to upload through media uploader on post edit page or upload.php. Here is what I tried but this works after all images are ...
1
vote
0answers
27 views

Access Customizer widget instance form

On the WordPress admin widgets page there is a known issue with the widget form not being available the first time a widget is added to a widget area. This can be seen in this trac ticket here: ...
0
votes
0answers
26 views

jQuery .find() is not working (right after it DOES work…) in tinymce extension

I am trying ultimately to get a character counter to show up beneath a text area in a form that is generated in a thickbox via jQuery as a TinyMCE extension. Before I work on the code to calculate ...
0
votes
1answer
26 views

Why does deregistering jQuery cause other scripts not to load?

I've inherited a site using the following in functions.php: if ( ! function_exists( 'foundation_assets' ) ) : function foundation_assets() { if (!is_admin()) { ...
0
votes
2answers
46 views

Active class for my flexslider in WordPress

I'm calling images with a wordpress loop to display in a flexslider on the home page. However, the active class for the thumbnails of the slider aren't working in tandem with the slideshow -- I can't ...
0
votes
1answer
65 views

Jquery ajax to custom php file: returning blank data

I created a custom php file, put it in my folder. The files does insert some data to the database to a custom table i created. require wp_path() . "/wp-load.php"; global $wpdb; $favorite_table = ...
0
votes
0answers
30 views

How to run ajax in Wordpress Post?

I am trying to use ajax in wordpress I have two comboboxes in single-meetings.php the second combobox values are based on selection from the first one here is my single-meetings.php <form ...
0
votes
1answer
20 views

wordpress add_action() issue in ajax call

After a hole day finding solution for the issue, i didn't get what is exactly i am making the mistake. Please give your valuable answer for my issue and humble request not to block if you can't ...
0
votes
0answers
23 views

How to specify url for ajax call in wordpress plugin

I want to use ajax form submit in a plugin, the submitted data will be processed by a script saved as handler.php in the plugins folder, how do I specify this in the jquery script, ordinarily ...
0
votes
0answers
12 views

Need help displaying array content programmatically [migrated]

I have an associative array that contains key pairs for the titles of a jQuery navigation list that is working for the portion of the code. See left side of the picture below: The problem is on ...
0
votes
0answers
20 views

How do I make a themeable jQuery plugin in Wordpress?

I'm writing a plugin in jQuery that I would like it to be customisable in wp-admin and I'm thinking of the best way to do it. For example, if I was writing a slider plugin and I wanted the the arrows ...
0
votes
0answers
19 views

How to use Jquery properly when editing page

I only want to use a simple JQuery in some of my pages, but the code just not working. Here is some of my background. I am using child theme. Under my child theme folder I do only have 3 files: ...
0
votes
0answers
11 views

click event not firing on elements inside thickbox [migrated]

In my plugin I am using thick box modal window to show the list of items. The content in the thickbox div is generated through a ajax request. I have input checkboxes inside this div. The click event ...
-1
votes
1answer
33 views

How can insert JQuery in Wordpress? [closed]

My question is how I can insert jquery libraries into Wordpress and how can I deal with them. Thank you.
0
votes
0answers
41 views

Retrieve customizer value using ajax or customizer api and print the value in theme

one of my clients have Branches. one located in new york another in los angeles and etc... in the live site we print new york phone and address(from the customizer) as default. what i need is to ...
0
votes
0answers
79 views

Uncaught TypeError: Cannot read property 'ajax' of undefined

I'm trying to show data from a JSON object in the content section of a WordPress website. The following static HTML works like a charm. <!DOCTYPE html> <html> <head> ...
0
votes
0answers
18 views

Create Notification on Top Bar

I want insert to top on wrapper and top wp admin bar, like this: http://getconversion.com/products/gc-message-bar/ but i always fail... Can i use jquery prepend after body? <style> ...
0
votes
0answers
28 views

Make jQuery library load before plugin files in child theme

I'm setting up a site with child theme. I have installed several plugins. But few plugin files (fancybox, jQuery UI files) are loading before the jQuery library. So I am getting this error: undefined ...
0
votes
0answers
32 views

admin-ajax.php is slow [duplicate]

On this site, it usually takes around 5-7 seconds for admin-ajax.php to process and return the response for when the user clicks on the plus icon on project hover. I'm not sure if this is a WordPress ...
0
votes
0answers
21 views

Owl Carousel Keyboard Navigation [migrated]

I'm looking to add keyboard navigation to the Owl Carousel plugin. The original jQuery plugin's Github has a thread on this topic here, so I've tried the following: var owl = $('.owl-carousel'); ...
0
votes
0answers
31 views

carousel in wordpress not work in theme (problem with 2 jquery js) [migrated]

i use owl crasoul in wp theme but not load in home page and i use layer slider jquery layer slider: 1.8.3 jquery carousel: 1.9.1 when delete jquery of every not load other ! why? owl code: ...
0
votes
0answers
28 views

Pulling apart & understanding the WP Admin Menu Flyouts

I need some help, or advice, on [how to] understanding the Admin Menu Flyout submenus. I've narrowed it down to the following key components: ul.wp-submenu This is the actual submenu, used to ...
-1
votes
0answers
88 views

AJAX POST 500 INTERNAL SERVER ERROR

I am new in WordPress coding and I make one infinity loop for my WordPress blog. Its working great on Local machine (WAMP) but after putting it online at nginx server its showing POST mysiteurl ...
0
votes
0answers
26 views

Send email in wordpress

I want a functionality to send email in wordpress but what I have tried below code but what I want is that an additional textbox forinstance called "name" is appended to my email ... can be append the ...
0
votes
0answers
39 views

Masonry callback during load

My photography website runs on a masonry layout. Masonry is called in the footer but the images load beforehand, causing it to look fairly messy until the images are completed and masonry is called. ...
0
votes
1answer
35 views

Wordpress Insert not working with ajax

I am trying to enter insert data with form in wordpress and want to use ajax for that. Without ajax it works fine but when I use ajax pressing the submit button gives 0 in result and the data is not ...
0
votes
1answer
28 views

Add a counter for mouseovers (custom field)

I am trying to count mouseovers on the div for each post. The div is inside the loop. I am almost there, I think you might have to just help me correct some mistake. The div and jquery. Notice that I ...
1
vote
1answer
43 views

wordpress count link clicks by ip address

I am building wordpress web site, which will have an option to download zip file from certain custom post type. By clicking on download button, user automatically starts with downloading zip file. ...
0
votes
0answers
23 views

Change php via js, is it possible?

i want to change my headers dynamically ( not in WP admin dashboard ) <div id="Header_wrapper"> <?php if( header_style == 'header-creative' ) get_template_part( 'includes/header', ...
0
votes
1answer
44 views

Remove Yoast jQuery from front end

I would like to remove the following two script and one style tags. They appear to be added by the Yoast SEO plugin, but looking through their plugin files yields nothing promising. Does anyone know ...
0
votes
1answer
33 views

Ajax Query returns zero

I am doing simple wordpress select query and want to do this with ajax jquery and do not want the page to refresh when I press search button and writing text in search textbox. As soon as I press ...
0
votes
1answer
39 views

Search query with Ajax

I'm running a $wpdb select query and getting it’s parameter from a textbox. Result shows as soon as I press the search button, but I want to do the same with Ajax without refreshing the page. I have ...
0
votes
0answers
60 views

How to show portfolio items from modal popup on portfolio plugin

When I have used this modal controller in while loop, the modal pop-up is working with framework metabox. The problem is when I reload my portfolio page, where all portfolio images are showing, the ...
-2
votes
1answer
13 views

Jquery conflict or not loading in wordpress theme i am using

i have included jquery for 3 things accordions, search icon click and mobile slider menu, in Header.php. But either the page is not loading on first sometimes. So i have to refresh and all works fine ...
0
votes
0answers
28 views

Inserting jQuery in a WordPress Code Block

I have a theme that already uses jQuery, so I thought I could use some of it by inserting <script type="text/javascript"> jQuery(window).load(function() { jQuery('form').css( ...
0
votes
0answers
4 views

jQuery show/hide toggler for faq list elements [migrated]

I've been trying to get an faq styled list created where there is a toggle button that when clicked slides open the respective answer to the question. However, I can't seem to get it to work at all ...
0
votes
1answer
44 views

WP AJAX API with JS file

So I am having a hard time trying to set my contact form working on a theme I am building. It uses JqBootstrapValidation plugin. Someone told me that the reason this is not working is because WP is ...
0
votes
0answers
14 views

Extra profile fields issue on Chrome

I'm using a custom function to create extra fields on WordPress profile editor, such as birthday, custom messages, etc. Two of them are image fields, so the user can upload custom cover and avatar. ...
0
votes
0answers
159 views

500 (Internal Server Error) of external php file

I am currently using WP Web Scraper version 3.2. Once I insert the shortcode or template tag (php code) directly into my page, the plugin works perfectly fine and the values appear. I decided to place ...
0
votes
2answers
87 views

How to add jQuery script?

I want to add small jQuery script in my WordPress how to do that? Here's the JQuery script that I want to add: ( function( window ) { 'use strict'; function classReg( className ) { return ...
0
votes
0answers
59 views

WP media manager in metabox to choose all media types

I'm trying to make a metabox for featured media on my posts, and would like to use the Media Manager like it is used in the editor, which is with all the options. I've tried this and similar things ...
0
votes
1answer
51 views

jQuery function not working

I have a very simple jQuery function that is supposed to toggle a div's visibility: jQuery( ".signUp" ).click(function() { $('.signUpForm').toggle(); }); The HTML is a simple signup form ...
1
vote
1answer
25 views

No data received

When I use the wp_register_script() and wp_enqueue_script() to load the jquery for the wordpress I got "no data received result with other information like this : Unable to load the webpage because ...
0
votes
1answer
47 views

Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll

I am currently using WooCommerce to display a list of products using the following loop to enable the post-type "product" be displayed and allow for pagination so I can use Infinite Scroll to smoothly ...