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

2
votes
1answer
58 views

Removing labels and <br> tag on WordPress's default login form

I am customizing the login form to more closely resemble Google's minimalist form, which has no form labels, and instead relies on placeholders to prompt users for the input fields. The form starts ...
-2
votes
1answer
70 views

How can I use jQuery maphilight?

I need an interactive map in my WordPress blog and would like to use jQuery maphilight. I tested maphilight in a HTML file and it works great, but I want to use it in WordPress, so need to call the ...
0
votes
0answers
12 views

Trouble figuring out slider for post containers

There is a section on the site I'm working on that loads 4 containers that are links to posts. I need to add functionality that allows you to scroll through more containers in the section by clicking ...
1
vote
1answer
22 views

How can I inject options into an select tag inside the widget form?

I created a widget, that retrieves filenames from the database and am now trying to output the filenames as options in a select tag inside the admin widget menu(the form function in the widget class). ...
0
votes
1answer
24 views

Masonry - Can't Find Variable imagesLoaded

So I am current building a site with the pieces theme which has built in masonry. When the theme was stock, the masonry was working however as I have begun to make modifications to the theme I have ...
0
votes
1answer
38 views

Javascript in plugin not working

I'm working on a plugin that relies on several JS scripts. In my plugin file (graph-plugin.php) I've the following function: function initialize_scripts() { wp_register_script( 'int-flot', ...
0
votes
1answer
51 views

$_POST empty in using new php file added to theme

I am using a theme which handles form data with jquery (a handler function defined).I have added a new php file to theme (using it in as template in a wordpress page, also registered with rewrite ...
0
votes
0answers
32 views

Hide/show content starting in the middle of a paragraph

I need to be able to hide/show arbitrary content (paragraphs, lists, maybe pictures) based on a user clicking a link. This is easy enough, but I am running into a lot of problems trying to add this in ...
0
votes
0answers
35 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
20 views

Showing category not added after adding category

I am submitting "add category form" by triggering submit event on form with jQuery. It adds category but still show "Category not added error". $("#submit").on("click", function(){ ...
0
votes
1answer
20 views

How to blur the_post_thumbnail() via blur.js (jquery)?

I want to use blur.js (blurjs.com) to blur the post thumbnail. But it seems that the .js can't grab the image out of the_post_thumbnail(). If I follow the instructions from the website and build my ...
0
votes
0answers
19 views

Call/link wordpress category with jquery/isotope classes

I am working on the portfolio section of my web, and these codes i have in filter.js script (in wp-includes/js folder) jQuery(document).ready(function(){ ...
0
votes
0answers
26 views

Filterable Portfolio with isotope and Expanding Preview with gridder

i am try to great a portfolio with isotope filter and gridder expanding and now i have a problem with my code if i try the filter the gridder now work perfekt but if see here-> ...
0
votes
1answer
23 views

WordPress Feedback popup with date saved into table

Spending now more then 2 days of searching and testing all kind of plugins, I need some help. I need a Feedback popup plugin with these tasks: front-end pop-up with main question + text area for ...
0
votes
0answers
29 views

Isotope filtering with wordpress by categories

I am using the isotope by metafizzy script, need to use it on projects page of my website, it's working fine but what i want to do is filtering by custom post categories (portfolio categories), here's ...
0
votes
2answers
42 views

Display admin_notice error message form jQuery event

I want to display an admin_notice error message on the custom admin page of my plugin - but I want it to only be displayed from a jQuery event. All of my jQuery is working. I can send data, see ...
0
votes
0answers
26 views

Use data-id for wordpress posts (individually)

I get the filters script implemented on my wordpress web by some developer, who's not good in wordpress functions but he did implement the filter script on web. That script is working on projects ...
1
vote
0answers
18 views

jQuery.replaceWith() not working in some mobile devices [closed]

I'm setting up a theme for a client and I'm trying to replace the Logo on smaller screens / mobile phones. This script works on desktop when resized / refreshed as well as some mobile phones (Nokia ...
-1
votes
2answers
54 views

Trying to prepend a Hashtag symbol to the_tags links [closed]

I want to prepend a hashtag (#) in front of the tags on my post pages in Wordpress using jQuery. This code is not working: $('div.tags a').prepend('#'); This is the php: <div class="tags"> ...
2
votes
1answer
74 views

Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]

What I eventually want to do is when user logged-in to the site, I want to redirect the to the page with all the post created by that user and I want to load them via AJAX request. I have save ...
0
votes
0answers
20 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' ...
0
votes
0answers
283 views

Insert data into mysql database with php and ajax

I made admin menu inside wordpress and I have form that allows admin to insert some values. I have html: <form id="prices_form" method="post" action=""> <div ...
0
votes
1answer
108 views

Live search from database table

I have wordpress site. I made custom table and sotred values in one row. Now I made admin menu and added input field into it. <input id="location1" type="text" /> I need to predict search ...
0
votes
2answers
37 views

How to get those data using with ajax json?

The following coding is the out come of an other page php echo user_list.php: $myarray=array(); ... ... $myjson = json_encode($myarray); echo $myuser->searchUser($myjson); and the result of ...
0
votes
0answers
17 views

Detect when media select input field has been populated in a plugin

I have some code in a little plugin I am trying to make that allows a user to select an image to use : <input type="text" name="thumbnail_adr" id="thumbnail_adr" class="regular-text" ...
0
votes
1answer
35 views

Loading custom file based on a dependant file that is also dependant on another file

i will start at the beginning. I have a website that is running the Master Slider Pro wordpress plugin and the iLightBox plugin. I am running a custom script in a custom.js file in wordpress child ...
0
votes
0answers
46 views

How to get variable IDs from OOP in jQuery?

I created image widget and tried to use $variable ($this->get_field_id('widget_image') in jQuery. Unfortunately, I cannot get it in jQuery. It shows Uncaught ReferenceError: object_name is not ...
0
votes
0answers
26 views

WP: Using jQuery inside a woocommerce tab

I have a child theme of Storefront which is modifying woo-commerce. The child theme uses the following function in functions.php to enqueue jQuery.UI scripts. function hurrah_enqueue_scripts() { ...
0
votes
0answers
33 views

Wordpress Widget: How to pass $this->get_field_id() to javascript

I would like to pass $this->get_field_id() from widget to jquery. How can I do? Now, I tried to do like this with no luck. var Id = $('.media').attr('id'); console.log(Id); Result: ...
0
votes
0answers
65 views

Is there a way to override Woocommerce's jQuery blockUI?

I know it's possible to make css !important override rules to style the overlay in a limited way, but for true control I've resorted to editing Woocommerce's checkout.js file. I've currently set up a ...
0
votes
0answers
82 views

Gravity Forms loading jquery

I placed the following script in my functions file to deregister Wordpress jquery and use the Google CDN. // use the Google hosted jquery library if (!function_exists('modify_jquery')) { function ...
0
votes
0answers
28 views

How to using a jquery click code triggering the category to load posts

Please i need your help to using a jquery click code triggering the category something like based on the URL or anything do that. For example select the "photography" category on page load ...
0
votes
1answer
22 views

Not getting result using ajax on wordpress

I have used the following code on my functions.php page add_action('woocommerce_product_thumbnails', 'my_ajax_button'); function my_ajax_button() { echo '<button class="buy-this-room myajax" ...
0
votes
1answer
25 views

Refresh widget admin page resetting jQuery hidden class

I am working on Media Upload widget. When I upload image file, it show the image in the admin page. Until I refresh this page, it is disappeared. After I checked, I found that the hidden class is ...
0
votes
0answers
39 views

Trying to update User Meta with Ajax

I am trying to make a plugin to record the users browser based location as user meta data stored as Latitude and Longitude. This current version is trying to make user meta via form, but ultimately I ...
0
votes
3answers
28 views

Why doesn't jQuery use $, and how can I get it do so (GLOBALLY)?

I have a WordPress theme that includes jQuery, but for some reason the "$" doesn't let me call jQuery. I know I can wrap jQuery calls in an anonymous function, but I have other plugins that rely on ...
0
votes
0answers
25 views

Using Javascript to detect keypress event in text editor

I want to bind a javascript function to trigger whenever a user presses a key in the text editor. However it seems that the text editor is an iframe and this is easier said than done. Is there any way ...
0
votes
0answers
29 views

Custom button on admin page doesn't trigger click event

I created a custom button on the "users" admin page. I have a script (loaded correctly) which should register the button click, but it doesn't. I followed an example where they hooked the ...
0
votes
0answers
21 views

Wordpress Custom JQuery Trigger no working on plugin

Experienced web developer here but have never worked with Wordpress. I am having a problem with custom JQuery code. I am trying to trigger an event when a change of selection occurs on a select form ...
0
votes
2answers
34 views

Applying jquery to WordPress admin edit.php

We use the latest versions of WordPress with the Woocommerce plugin. I'm searching for the best way to apply jquery to custom post types such as WC. I have a lot of hooks already for Woocommerce, so ...
0
votes
0answers
28 views

Count comments shows always the count of the first post in the homepage

I have a problem with the "comments count" in the toggle link in my blog: http://www.albertosotophotography.com I have this script (in header.php) for show/hide comments in main page: <script ...
0
votes
1answer
48 views

Autocomplete for titles via ajax - rework of past post away from like_escape()

I'm trying to create an input field that can autocomplete only title from a CPT. They don't have to be linked, they just need to pull titles of a cpt alphabetically and searching from the first ...
0
votes
0answers
20 views

Overwrite Plugin jQuery in Theme/Childtheme JS

I have a Plugin with the following jQuery: //focus search box if specified if(hkbJSSettings.focusSearchBox){ jQuery('.hkb-site-search__field').focus(); } I know I can comment this out, but I ...
1
vote
2answers
74 views

Searching multiple tags and adding jQuery dependant script onto page template?

I have this simple javascript file for checking boxes in a tree view menu: treeview.js $(".acidjs-css3-treeview").delegate("label input:checkbox", "change", function() { var checkbox = ...
1
vote
3answers
60 views

Why isn't jQuery 2.1 loading in the header?

Because I want to use jQuery 2.1 instead of 1.11, I first have to de-register jQuery. Then register it with the new values. : add_action( 'wp_enqueue_scripts', 'add_scripts' ); function ...
0
votes
0answers
26 views

How can I filter through my custom posts with pagination?

Right now I am successfully filtering my posts with my taxonomy terms with jquery so that when you click on a "brand" or a "type" it shows posts that have that taxonomy. My problem here, however, is ...
1
vote
1answer
41 views

TinyMCE 4 remove/add attributes for all images

i want to search for all images that have been add to TinyMCE 4 and: Remove the height attribute from the images Add style="max-width: 100%;" to all images what is the best way to do this tasks? ...
0
votes
1answer
6 views

Adding text to links when not on the homepage

I'm using fullpage.js in a Wordpress theme and on the homepage the main menu links to different sections on the homepage via "#section-1, #section-2" and so forth. Then on other pages the main menu ...
0
votes
1answer
39 views

how to remove/exclude html coding from json file while export?

I have created a file using json and exported it. Its creating HTML tags with it. Actually,I don't want to have that html part to be there in the file. Below I am sharing structure of my current file: ...
0
votes
1answer
16 views

Slider from different widgets

I need some advice. I have added the possibility to pages to have categories with a plugin. I have created a widget for a client that lets a user select a category from a page and select a subpage ...