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

3
votes
2answers
844 views

How to correctly add Javascript in functions.php

I would like to remove some ugly looking arrows that are standard on cart buttons in WooCommerce. To achieve this, I found a tip of adding the following code, which should remove the arrows when the ...
0
votes
1answer
51 views

Ajax autocomplete based on usercode

I am trying to build a webform with autocompletion. The user can fill in a personal code and the related fields will be shown in the form fields. How can I fetch the results into my form fields? ...
0
votes
1answer
260 views

How to use different jquery function of idangero swiper dependant on page template?

I have struggled with adding the idangero swiper jquery plugin to my site, but have managed to produce the code below. This works very well but only on the one custom page template defined in the ...
0
votes
1answer
179 views

Add php function into .js file (for tinyMCE button)

I am creating a tinyMCE button for the wp WYSIWYG editor. Basically what happens is when a use clicks on the button a modal form pops up and they have to enter a few fields. However One of the fields ...
0
votes
0answers
71 views

Adding Radio Options or Select Options to Meta Box Title

I am adding Radio Options and Select Options to miscellaneous Meta Box titles. The HTML is rendering just fine in the title of each appropriate Meta Box title. There seems to be a bit of ...
1
vote
0answers
114 views

Add tinymce buttons to caption textarea in media uploader

I want to add some basic tinymce buttons ( Bold, italic, underline ) to caption textarea in media uploader in WordPress. (Shown in attached image) I dig a little bit into wordpress core in media.php ...
0
votes
1answer
75 views

Load jQuery inside Page Template

This is rather basic, and maybe it's a duplicate question, so let me know where exactly is answered in that case. I need to add a very simple jQuery script inside my Page Template. I'm using ...
0
votes
0answers
38 views

wordpress wp_reset_query makes jquery tabs stop working

here is my code,the slider tab is working fine if i don't add wp_reset_query() but when i add it. it stops working.I tried all.Please any suggestion for this. <?php query_posts(array( ...
0
votes
0answers
63 views

Open posts in a sliding panel

I'm new to WordPress/coding and I was wondering if you guys could help me out a little bit. I want the posts pages to open in a horizontal slider panel... here's the perfect example of what I mean: ...
0
votes
1answer
95 views

How can I implement an Add to Collection function on my Image Gallery to be downloaded later?

I am building a WordPress Image Gallery like a Stock Photo Gallery for internal office use. I am using the Media Gallery to upload files and then using the image gallery to display the photos. It's ...
0
votes
1answer
139 views

Ajax contact form return 0

I have a contact form that I want to submit using ajax. It seems like send the data, but the only retrieved is 0. HTML form: <form method="post" ...
0
votes
1answer
25 views

How to make javascript work on theme options page

Gentlemen! I'm composing a theme options page for my WP theme. And I bumped into the problem of finding the proper way to introduce inline jQuery interactions to the page. Ideally for me in the ...
1
vote
1answer
50 views

Plugins not working on AJAX requests

I have an AJAX request that retrieves information from a function I coded in my own plugin, here is how I set the ajax function: function my_ajax_function () { do_action('my_plugin_function'); } ...
1
vote
1answer
382 views

Hide menu item in certain condition

I'm using the plugin qTranslate and I have to hide one menu item when the language isn't Italian. Searching online I created this solutionand applied the solution in this post I created the file ...
0
votes
1answer
599 views

Replacing select2 in admin backend for all selects

I originally posted this question as a javascript question here, but think maybe it would be better asked here. I tried adding select2 to all wordpress admin screens. However, since many selects are ...
0
votes
2answers
243 views

WP_ENQUEUE not working with Foundation 5 (resolved)

EDIT: PLEASE SEE MY ANSWER BELOW FOR ASSISTANCE :) feel free to use the code! I've recently started integrating Foundation 5.2.3 into Wordpress 3.9, and I am having issues with getting jquery to ...
1
vote
0answers
119 views

Using color picker in plugin, does input attribute order matter?

I'm trying to use the WP color picker in a plugin admin menu and it doesn't seem to be doing anything at all. I'm following the directions here: ...
0
votes
1answer
63 views

Variable not being returned from Ajax Javascript (though javascript receives it)

I'm receiving the variable to JavaScript, but not getting it back in PHP, and I think Its not being coded correctly in the JavaScript: function glitch_player_display(mix_name) { alert(mix_name); ...
0
votes
1answer
97 views

Using WP functions inside javascript

I'm trying to use PHP variables inside a javascript function. What's a proper way to use a WP function like get_current_user_id() inside a script that get's enqueued via wp_enqueue_script? Right now I ...
0
votes
2answers
1k views

Function won't run onclick using Ajax

Ok, so my code is meant to be pulled from the function using the jquery code below, but it isn't pulling the code and I can't see why not. My pages code <script> var click_to_choose_user = ...
-2
votes
1answer
139 views

jQuery Issue with Smooth Slider Plugin

I have the Smooth Slider plugin installed and it works on the default theme. I selected it as Display Slider on this Post/Page, and used the template tag for that specify page.php as <?php if ...
0
votes
0answers
80 views

Infinite scroll wont work on mobile browsers. Works on non mobile systems

I implemented infinite scroll on my WordPress blog using the following script: <script type="text/javascript"> var abc=66;//what is abc doing? $(window).scroll(function () { ...
0
votes
0answers
34 views

Ajax not working in Wordpress but works fine elsewhere?

I'm using an image gallery plugin with WP theme twentyfourteen. I embedded a submit field in one of the plugin's files which executes just before the gallery is loaded and sorts the images. All the ...
1
vote
1answer
221 views

wpColorPicker: How update colors on input value update?

Setup: An input field that has attached a wpColorPicker instance. An external event that changes the input value color. Issues: On value change the color shown by the colorpicker doesn't get ...
0
votes
0answers
490 views

Load Next Posts With AJAX not working with custom post type

I am using this plugin to load in my next posts with AJAX. I have implemented it into my site and it is showing the load more posts button however once you click on the 'load more posts' button it ...
0
votes
1answer
402 views

Form isn't inserting data into database with ajax plugin

I've been working at this for weeks without success. I've figured out problem after problem with the code, but none of the corrections seem to fix my core problem. The form doesn't insert anything ...
-1
votes
1answer
60 views

Loading jQuery library from WordPress admin

When we are developing Themes, we are taught to enqueue the jQuery library if necessary, because no jQuery library is available on the front-end of WordPress (if I'm not wrong). But when we are into ...
0
votes
0answers
88 views

Like/Dislike Bar not working when updating

I'm trying to integrate Like/Dislike Bar in a Wordpress plugin . It Works Properly when total page reload/refresh . But whentime Like/Dislike Bar refresh from ajax that time its not working . This is ...
0
votes
0answers
21 views

Multiple Menu Selections to compile data on new page

Need to create a menu box (vertical stack of 4 selections) on a page, which then calls from either a database or CSV file, final combination of items required as follows: Selection 1: >MenuItem< ...
0
votes
0answers
49 views

Customizing the built-in Media Playlist

I have a simple challenge I can't quite seem to make any progress on: Get the current track (or video) playing and display a link to a transcript of the song. This should be a simple task (and the ...
0
votes
0answers
48 views

adding fields dynamically in admin panel

I'm writing a plugin, all backend is finished and I want it to add quite big sets of data, so I want to add more fields dynamically like this: I got some simple adding form, but it takes long time ...
0
votes
0answers
884 views

jQuery / jQuery-UI Tabs Will Not Show New Content

Thanks in advance for any help you can offer! I am using the example posted here as a proof of concept on my website page. I am using "Use Google Libraries" to load the jQuery and jQuery-UI libraries, ...
-1
votes
1answer
212 views

Contact Form 7 submission does not complete [closed]

I have a Content Form 7 Version 3.8.1 form which seems to function perfectly in that the validation events all work and when submit is clicked the console shows no error, a 200 response comes back ...
0
votes
0answers
168 views

403 'GET' Error on Wordpress Jquery Autocomplete

Overview: I am trying to create a simple jquery autocomplete in a wordpress theme, on a custom template page containing a form. I wish for it to work both front-end, for logged in users, and the ...
0
votes
0answers
352 views

Pinterest Chrome/Safari Extension not working on WordPress Site

I am working on a client WordPress website - http://simplyconvivial.com. For some reason the Pinterest Chrome/Safari extension is not pulling the images correctly on this site. When you click on the ...
0
votes
0answers
275 views

Inserting image into meta box row using jQuery - always adds to first row

I'm having a problem with inserting images into a custom post type meta box. I have a button that adds a row to the DIV and you click on the Select Image button to use the WordPress media selector. ...
0
votes
1answer
44 views

Why this plugin is not working?

I am testing jQuery in my wordpress plugin. Two files 1. main_plugin.php 2. js_plugin.js (Both in the same directory HelloWorld). CODE: PHP FILE: <?php /* Plugin Name: jQuery Test Plugin Plugin ...
0
votes
2answers
75 views

Unexpected script loading order

I'm trying to make scripts load in a certain order, and am getting unexpected results. I'm using this script: function tallulah_scripts() { wp_enqueue_script( 'header-js', ...
0
votes
0answers
477 views

How can I get the jQuery Autocomplete demo to work correctly?

I'm experimenting with jQuery Autocomplete, and I'm having trouble getting it to work. The first bit of code you see below is almost an exact copy and paste from from the demo: ...
0
votes
0answers
35 views

wordpress plugin setting page not enqueueing jquery?

on a setting page for my custom plugin i ahve the following: function wbvpe_load_scripts($hook) { global $wbvpe_settings_page; if( $hook != $wbvpe_settings_page ) return; ...
0
votes
1answer
28 views

jquery not working correctly in plugin options page?

I have created my own plugin which has a custom script attached to it. I have added this in the correct manor like this: add_action('admin_enqueue_scripts', 'add_search_script'); function ...
0
votes
0answers
163 views

Sorting Posts Based On Meta Value Using AJAX

I am trying to short posts on frontpage/archive pages using AJAX. The AJAX call seems okay but nothing displaying. Here is the JS: jQuery( document ).ready(function() { jQuery( ".sbyp" ...
0
votes
1answer
608 views

Unexpected token ILLEGAL, even on clean install - jquery-issue?

update i get even more issues and errors; POST http://literaturen.org/wp-admin/admin-ajax.php 200 OK 1,39s jquery...=1.11.0 (Zeile 4) GET ...
0
votes
0answers
83 views

Update field in Theme Customizer via Javascript

I am working with the Customizer and I have made some custom controls which is cool. Now I'm trying to create a relationship between two controls whereas the input of one control passes through some ...
0
votes
1answer
447 views

Right way to update widget on dynamic new input field

I have code to add an input field dynamicly in my theme. I have testd it, as a metabox and it works. But, not in a widget. First add and update, that codes work, but when I refresh page or try to ...
0
votes
0answers
30 views

Interactive tagline or similar

I would like to either (a) edit the tagline to include an html snippet, or (b) add my (interactive) contact details to the header, in the same area as tagline, but aligned to other side. I ...
0
votes
0answers
17 views

Responsive framework - edit child js

Is the responsive framework used by WordPress custom to WordPress, or is it a standard design? Where is the js file located that controls behaviour of the grid system used by theme twentytwelve? Is it ...
0
votes
1answer
132 views

jquery-issue: cannot load the basic jquery

I am pretty new to wp. I have installed wp 3.9 on a demo site. I wanted to configure and add some plugins; eg the facebook wp-rss-multi-importer I've noticed that I cannot do some configurations ...
0
votes
3answers
51 views

Invoking Jquery in a Plugin

I am using the following code in my plugin : <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <?php echo "<script ...
0
votes
1answer
481 views

Bootstrap with Flexslider jQuery Issue

I'm building a Wordpress theme using Twitter Bootstrap. I have registered and enqueued the bootstrap .js file (including others) and everything works fine. This is my code: wp_register_script( ...