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

[jQuery]Adding shortcode

I have been struggling with this the entire night, with no hope of ever reaching my goals. I have browsed through several books worth of support pages, but I can't get this to work. I am trying to ...
0
votes
1answer
44 views

Conditional Tags - Multiple Categories

I need to have all News posts show a category header (while not showing the post title). The following piece of code seems to do the job: if($category[0]->name == 'News'){?> <script> ...
0
votes
0answers
61 views

jQuery keyup() on Visual editor

I need to trigger typing in Visual editor and to get current text from it. Is it possible? Then next line are not working: $("visual_editor_selector").keyup(function(){alert("Changed")}); ...
0
votes
0answers
38 views

Angular disable the input submit tag

I've imported AngularJs in Wordpress into the header.php file <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js" type="text/javascript"></script> ...
0
votes
0answers
61 views

Add and remove fields in wordpress widget

I am trying to make field adding and removing wordpress widget. I made it in html jquery, but I don´t know, how can I transform it to wordpress widget. Can You help me please? My jquery and html ...
0
votes
1answer
295 views

How to refresh a page from jquery [closed]

Im sending some data back and forth WP and at the same time Im trying to refresh the page from server side. on functions.php function communicate_to_jquery() { ...
0
votes
0answers
25 views

Use jQuery to fire a script on specific pages

I am looking to run some code on specific pages only and I would like to be able to identify those pages just by id. I'm not a programer and I'm sure it can be done. What I would like is to be able ...
0
votes
1answer
89 views

Change zurb foundation top bar style on.scroll in wordpress theme using jquery and css

I was wondering if someone could help me out. I am currently developing a wordpress theme using foundation framework on a local host and I would like for the top-bar to change styles on scroll using ...
0
votes
0answers
102 views

Use Media Uploader in Widget

I am trying to use the Wordpress Media Uploader inside a Custom Widget. When I use a similar code for a custom meta box inside the post edit screen everything works fine, but on the widget site it ...
0
votes
1answer
56 views

JQuery Login Dropdown not functioning in theme

Having a problem on my demo site (http://somm.icorp.net/) what I'm attempting to accomplish is when you click on the LOGIN button a drop down appears and using JQuery, it displays a login box so users ...
0
votes
1answer
135 views

How to use Bootstrap with WP's jQuery? [closed]

I am using WP's local jQuery. All my own scripts are working fine! But bootstrap gives me this error message in the console: Uncaught Error: Bootstrap's JavaScript requires jQuery. How can I make ...
4
votes
2answers
575 views

How do I use WP's jQuery

I am trying to learn WP theme development. And I just learned that WP already has a jQuery verision included. Until now I have been using the jQuery from Google's CDN. So I just now deleted the CDN ...
0
votes
1answer
75 views

Revert to previous dropdown options after change

I have two dropdowns (which are using Chosen.js). The second dropdown displays custom categories: <script type="text/javascript"> jQuery(document).ready(function($) { ...
0
votes
1answer
93 views

Custom Javascript not working? [closed]

Basically I want the effect to look as it does here But mine won't do the effect I currently have a button but it won't activate the effect for the menu to pop open. site that I'm using to test it ...
0
votes
0answers
33 views

Trying to modify a plugin jQuery event

I'm using a plugin called "Out of the Box" to show dropbox contents. The search is designed so that it... only searches the folder and child folder you start from begins searching on a "keyup" event ...
0
votes
1answer
150 views

Reload wordpress shortcodes

Let's say I have a page, and inside that page, I have inserted shortcodes/plugins for a chatbox, twitter feeds, fb feeds, tumblr, etc. The shortcode accepts parameters for different hashtags to ...
3
votes
1answer
85 views

Detect a focus on wp_editor

I wan't to detect/callback when a wp_editor(..) output text-area/content-editable is focus. Quite a simple question that I could not find anywhere. <div class="compose-body"> <?php ...
0
votes
0answers
301 views

Category filter with load more ajax

What I am trying to do is to do an Ajax request to filter posts on category click depending on the category id, then apply load more posts by ajax. Problem: when I fire the ajax call by clicking on ...
0
votes
0answers
23 views

jquery prettyphoto insert miniatures lightbox and navigation tools

I have a question to ask: why if in jqueryprettyphoto.js if I enter the parameter: hook: 'data-relay', / I can see navigation tools, twitter, facebook but I can not save the picture. however if I ...
0
votes
1answer
52 views

datepicker value in mysql

I am using a plugin WP-Types for custom post types in which there is a option to create custom fields in which i created one date field for my requirement. Now what happens when i add any date into it ...
0
votes
0answers
34 views

Cross fading code for website

I found this tutorial for cross fading images through a link click: CSS3 = Awesome: Cross fading images It is number 6 in the tutorial. I know there are some changes to the jquery that need to be ...
0
votes
0answers
115 views

Toggle Visibility of Separate Javascript Files on Same Wordpress Page

Let me preface by saying my knowledge of JS is lacking at best and the concept of installing/loading/enqueueing a function on one area of the site and then calling that function in another area of the ...
0
votes
1answer
194 views

Admin Ajax is returning 0 and not Insert data

I am relatively new to jQuery and AJAX in particular. I have a small issue with the return value always being 0, though I think this is actually the success message and it's not returning anything. I ...
1
vote
1answer
77 views

Wordpress custom taxonomy check box to dropdown

Hi my custom taxonomy name is country.In this A is a country, a-sub1,a-sub2 are states under A. b-sub1,b-sub2 are state under Country B. Now i need to display the country list(parent) box and state ...
1
vote
1answer
1k views

Is there a way to enable Cross-Origin Resource Sharing for WordPress' ajaxurl?

WordPress already has a default URL for jQuery-WordPress application calls and it's well known as the ajaxurl. However, there are cases wherein one would need to enable Cross-Origin Resource Sharing ...
0
votes
0answers
108 views

[jQuery]Autocomplete and $.post

I managed to solve it using Sisir's push in the right direction. Here's the javascript function: function render_edu_hook_javascript() { ?> <script type="text/javascript"> var ...
0
votes
0answers
120 views

openbtn.addEventListener is not a function?

Someone has helped me with this script in Codepen where it worked fine, until i tried to implement it into my Wordpress website. The two sets of grey dots are buttons. Each button will open it's own ...
0
votes
1answer
40 views

How to get this jQuary script working?

I've searched for it, but I just getting more confused. I want to use this script to show a menubar after scrolling down 200px: ...
0
votes
0answers
29 views

Enqueing Scripts

Perhaps more of a verification question for me... My plugin uses a few JS files which it enqueue's, however I am finding that in some instances of WordPress and some Themes the JS is not working as ...
0
votes
0answers
56 views

Been at this for hours--how do I add a jQuery function in the functions.php of WordPress?

I can't include all the things I need to include in my one multi page gravity forms form. If I try to include too much it just 403 errors me. I need to add a video at the top of each page. I've spent ...
0
votes
0answers
2k views

WordPress AJAX File Upload - FrontEnd

So I have been reading through every WordPress front-end AJAX file upload tutorial I can fine. Nothing is working for me at the moment. The one that makes the most sense to me is this one: ...
0
votes
1answer
29 views

Jquery being loaded wrong

So first off, I don't understand this coding very well. So bare with with me if I'm using the wordage wrong. I have a plugin called TablePress. It's creates tables from csv files and uses jquery to ...
0
votes
1answer
246 views

Checking length of string in an admin area field onblur with jQuery

I have a custom field (I use Advanced Custom Fields plugin) set up to display when creating a new Post. A user must enter a 4 digit year. No more than 4 characters, no less. I have the following in my ...
0
votes
0answers
31 views

mceInsertContent repeating previous values

I am trying to insert a shortcode to the editor using jQuery dialog. But every time I click on insert button it adds the previous values with the current values. For example, on first click it adds ...
0
votes
0answers
48 views

Template file structure , wordpress hook for altering the template

i need to convert a html structure to theme. So this is my html structure <html> <head> ................. </head> <body> <div class="main"> <div ...
0
votes
0answers
65 views

Flexslider + Tabs + WP default query script issues

I'm having some issues with flexslider and tabs to work together. Example 1 - if i add google cdn to header above all works fine. Now the thing is, i know it's not a proper way of adding jquery ...
0
votes
2answers
69 views

problem with creating a wordpress post slider

firstly i know i have to add some code explaining what i have done before. But honestly i had tried more than ten tutorial concerning wordpress post slider based on flexslider or bxslider or other ...
0
votes
0answers
33 views

jQuery wp_dropdown_categories?

I'm trying to make a search with 3 options that are parent categories. Make, Model, and Year. "Model" is dependent on "Make", When Make is selected The models should display the grandchildren of the ...
0
votes
1answer
758 views

Are innerHTML elements visible to jQuery functions?

For example, on my admin page i.e. dashboard side: //This is hidden until search results come back //which will be inserted as innerHTML within #searchResults <div id="hideShow"> ...
1
vote
2answers
142 views

Click loads template via ajax

I'm trying to load a template via ajax if the user clicks on a button. This is the code I'm using: On functions.php: function phantom_scripts() { global $child_dir; /* Ajax Requests */ ...
0
votes
0answers
194 views

Minify CSS & JS files server side for Wordpress

I'm hoping someone can help me. I am looking to create a php script that will minify (and preferably concatinate) all my CSS and JS files into one minified file for each. i.e, one JS file and one CSS ...
0
votes
1answer
118 views

Jquery in Child Theme

I am new to Wordpress and I need help with integrating my own jquery into a child theme. I have this jquery tooltip which works but I want to include it into my wordpress child theme. Have a look ...
0
votes
0answers
103 views

How to properly use chosen jquery in wordpress theme customizer

From past 15 days I have been trying to add chosen jQuery plugin in Wordpress Theme Customizer. I have succeded also in adding the chosen,jQuery plugin properly. But the problem is that when I ...
1
vote
1answer
111 views

multiple taxonomy select display only one in front end

I have various custom taxonomy, sometime, I have multiple choise selected in the back end ( cf screenshot) however, in Front end, I have only one getting display, I would like to have all of them ...
0
votes
1answer
233 views

How to call javascript function (jquery) in a shortcode?

Before asking here, I've searched a while and found a tutorial about creating a wordpress plugin with shortcode and javascript calling. But I'm not able to make it work on my side. The tutorial is ...
1
vote
1answer
38 views

Is there a restriction in WP on the use of jQuery load function?

I'm just trying to load a simple txt file for testing purposes. jQuery(document).ready(function(){ jQuery("#buttonAjax").click(function(){ jQuery("#demo").load("demo.txt"); ...
0
votes
0answers
99 views

window.send_to_editor from custom thickbox button

I am trying to append a shortcode to the editor from a custom thickbox window. Everything is working smoothly except that the content isn't being sent to the editor. Here is the thickbox HTML. ...
0
votes
0answers
22 views

Adding a jQuery rotator function

I wanted to test and use the bellow function from @kaiser for a jQuery rotator, but I received an error. Can anyone tell me what is wrong? I have followed all instructions of the author. The ...
-1
votes
1answer
119 views

WooCommerce - Checkout suddenly stops working [closed]

From one day to the next apparently the checkout, specifically selecting a payment option stopped working. I can't figure out why, but when selecting an option, the page keeps jQuery reloading. this ...
0
votes
0answers
29 views

Perform a 'refresh' transport or open the site in new tab, after saving the theme in Customizer

Is it possible to perform a 'refresh' transport after saving the theme in Customizer? Can you help me about this? If it is not, then my plan B is just to open the site in new tab after saving the ...