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

1
vote
2answers
47 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
1answer
31 views

Submitting my form to the database and then redirecting to payment site

I am submitting data to my custom table and would then like to redirect to a third party who will handle the payment. (not PayPal). I have the following code which adds the data to the database. The ...
0
votes
1answer
26 views

Adding divs to WordPress page content

I am wondering if there is a way to add divs to specific elements in the WordPress page content? For example, I would want to wrap a div around content starting at a H2 element and ending after an ...
0
votes
0answers
32 views

FancyBox Transitions

If you visit http://www.cube.umbrella.al/minimal/2013/07/25/nokia-lumia-1020-review/ (This isn't my site, but it uses the same format/gallery aspect of my own, its just for demo purposes for ...
1
vote
1answer
49 views

Autogenerate Front End Form Field With jQuery

I am attempting to autogenerate the terms in a custom taxonomy from a front end field. However, when I use the following code and try to type in a letter the dropdown menu that appears is a bunch of ...
0
votes
1answer
66 views

Jquery autosave text area after typing

I'm trying to learn how to use Jquery, and manipulate some existing code to do what I need it to do. I am wanting to edit this code to make an editablecontent text area save a certain number of ...
0
votes
1answer
36 views

Javascipt issue on custom theme

First off I always seem to have trouble getting my JS to work with WP. Currently I need some help figuring out what is going wrong with my javascript and ultimately what I am doing wrong. I have this ...
0
votes
0answers
14 views

Run script when media uploader is opened in post

I've added additional fields to attachment fields so that the user can select a photographer either from a dropdown that has a list of photographers, or you can put your own photographer. For that ...
0
votes
3answers
25 views

jQuery search function not running in Wordpress but running locally (fiddle)

as the title suggests, I am running into this annoying issue: The search is not working in wordpress but it is working in the fiddle and locally. The sorting is working in wordpress. I have the ...
0
votes
0answers
36 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
0answers
44 views

Moving CDN jQuery to footer does not work?

What I want to achieve: Change the default JS to Google's CDN --> this works Move the Google CDN to the footer --> this does not work My code: function my_init() { if (!is_admin()) ...
0
votes
1answer
36 views

Enqueue script: link not working in page source

I am using the Front-End Editor plugin of Scribu at my website. I want to enqueue it, because I want to use it alongside my caching plugin, but that one only works when JS files are enqueued. The ...
0
votes
0answers
79 views

Jquery Load with shortcode inside

I'm facing an issue to put my dynamic div working and i can't get no solution! In my child theme, I've a template which works correctly when page is created: <?php get_header(); ?> <script ...
1
vote
0answers
32 views

Redux Framework: Page freezes on typing in Editor

I am using Redux Framework. I am facing an Issue with the editor in Theme Options of Redux Framework Currently I have 103 editors in the options. My Issue is that whenever I start typing ...
0
votes
1answer
173 views

Delete post image attachments with jQuery from the front end

In my WP 4.4 Twenty Sixteen child theme I want to delete post image attachments from a front end form created by a plugin. To achieve this I followed this answer, but the delete links doesn't delete ...
1
vote
1answer
25 views

Creating multiple enclosing shortcodes and fixing JS issues on click

I have the following shortcode to create multiple 'more' sections in any page/post: function more_shortcode( $atts , $content = null ){ return '<div id="more-outer"><a href="#" ...
0
votes
3answers
81 views

jQuery datepicker not showing on admin menu

Nothing happens when I select the datepicker field. This is the code for the field: <input id="sticky_date" name="sticky_date" class="datepicker hasDatepicker" type="text"> The javascript ...
1
vote
1answer
66 views

scrolltop always 0, can't trigger script

While trying to add a jQuery trigger on scroll script to my child theme, I noticed it never triggered even though it was added. However after trying to figure out why the script wasn't working I used ...
0
votes
1answer
28 views

Enqueue script, taking no effect [closed]

I've added my custom_script.js to my child theme by making a /js folder, and I added it within my functions.php like this: /*** Make Header Shrink on Page Scroll**/ add_action( 'wp_enqueue_scripts', ...
2
votes
3answers
210 views

Remove profile picture option (and other things) from profile.php (in admin)

Just upgraded to WordPress 4.4 and I notice now my users' profile page in admin, there's a section called "profile picture", with a link to Gravatar. The plugin I'm developing restricts a lot of ...
2
votes
1answer
135 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
144 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
41 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
47 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
44 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
97 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 ...
1
vote
0answers
62 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 ...
1
vote
1answer
119 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
24 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
40 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
39 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
61 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
25 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
45 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
111 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
32 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
27 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
76 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
183 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
51 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
459 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
233 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
82 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
22 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
46 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
55 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
47 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
54 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
211 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 ...