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

Read More Plugin is Messing with Blog Posts

I am using a JS plugin that allows the overflow of text to be toggled between hidden and not hidden when you click the read more link. Works great, and uses the tag to trigger it. I am using it on ...
1
vote
2answers
447 views

Make parent category not selectable when it has child categories

I'm trying to find a way of disabling the selection of the parent category within Wordpress 3.5.1 (post editor screen) only when that parent category contains child categories. My structure: ...
0
votes
1answer
430 views

Smooth Scroll and Slider Conflict

my website is http://eclat.sg/gourmet running on Wordpress(obviously.). I have a slider on the front page and I've installed jQuery Smooth Scroll plugin. The plugin works awesome but unfortunately, it ...
0
votes
1answer
39 views

Create search form in menu as in Twenty Fourteen theme

I would like to replicate the search form in Twenty Fourteen's menu. I have tried to hide and show the search button with jQuery. My Problem is that the button is not sliding from left to right and ...
0
votes
1answer
19 views

Get custom fields when hover link of post

I have custom page and get some links of post if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <li><a href="<?php ...
0
votes
0answers
20 views

AJAX - respons return 0 [on hold]

I have a problem by returning some information of the AJAX I know it's a question that frequently comes over here, but I could'nt found any answer for me... The code, which is placed in one file (in ...
0
votes
0answers
15 views

Wanted to collapse all the widgets in sidebar by default via jQuery

I already applied jQuery on footer to Slide them up but i noticed that when the page is completely loaded the widget slides up properly but dont know how this again slides down automatically. I m not ...
0
votes
1answer
449 views

How to add fixed position in menu class for Twenty Twelve theme?

I have already looked at many jquery examples on how to make the menu sticky. I have applied these tutorials on clean html pages and they have worked perfectly. However, when I try to apply it on the ...
1
vote
2answers
28 views

Correct Method to run scripts with dependencies without enqueue?

With enqueue you would change $deps to your script or array of scripts that are needed to run first for your script to work. <?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ); ...
0
votes
1answer
1k views

How do I implement jPanelMenu?

I have serious problems trying to implement jPanelMenu to the theme I'm building. The theme is nearly finished, I'm just trying to figure out this menu and I can finally start using it. Anyways, if ...
0
votes
2answers
22 views

:first-child applying to all links [on hold]

I am trying to remove the margin-left:10px; from the first menu item in my main navigation. I am ussing a wordpress custom navigation for my site. I have tried the :first-child method but this seems ...
0
votes
1answer
407 views

WordPress ACF - Date picker [closed]

So basically I have an events page set up with 'start date' and 'end date'.. In the back end i have Advanced Custom Fields jquery Date Picker to select these dates. The setup of these fields are as ...
0
votes
0answers
11 views

Prevent submission of widget form

How can I prevent submission of a widget form? The following doesn't work for me. And preventing submit won't work because Wordpress uses Ajax for those forms. jQuery(document).ready(function($) { ...
0
votes
2answers
45 views

$.browser Undefined Seemingly Causing Faulty Page Display

At this site I have an error using the parent theme's jquery.PrettyPhoto.js This causes tabs not to load well nor gallery to work well it seems. The error states TypeError: $.browser is undefined ...
0
votes
0answers
23 views

Custom function won't work in JS but human_time_diff() will [on hold]

I have a function the_rooms() defined as: function the_rooms() { $latteParams['post'] = WpLatte::createPostEntity( $GLOBALS['wp_query']->post, array( 'meta' => ...
0
votes
0answers
12 views

Accessing /page/2 on WordPress directly breaks infinite-scroll

I added infinite-scroll.js library to Wordpress (manually, not via plugin). On index i have wrote a loop to make the pagination and everything works fine, however then i'm accessing URL/page/2 ...
0
votes
0answers
22 views

jQuery conditional fields for Contact Form 7 [closed]

I have a "Contact Forms 7" form on a Wordpress page where I am trying to make something conditional using jQuery, when a checkbox is ticked a div is shown. The source for the form is: ...
0
votes
2answers
1k views

Check if email address exists front end with AJAX in a plugin

I am pulling my hair out trying to figure this out. I have followed the wordpress codex here for AJAX: http://codex.wordpress.org/AJAX_in_Plugins All I keep returning is 0, I never get a 1. Any idea ...
0
votes
2answers
380 views

Add class to <li> based on content of link in <li>

I've added a custom JavaScript file to my header via functions.php and the file is linked fine when I check the source code (listed well below the main call to jQuery). Within the custom JavaScript ...
0
votes
1answer
820 views

Adding Colorpicker Field To Category

I want to add a custom field to my categories where the user can color code them. I've added the field but I want to use built in colorpicker (either tinyMCE or the farbtastic) to give the user an ...
-1
votes
0answers
11 views

jquery plugins only work on the frontpage [closed]

Sorry, I have posted this question before and I know it is not strictly a wordpress question. But still I haven't found a solution to solve the problem even I use on() instead of using document ready. ...
5
votes
2answers
471 views

Require featured image

I would like to require a featured image on a site I am developing. I tried the code here: Make featured image required and nothing happened - the JS showed up in the site header, but I could still ...
0
votes
1answer
336 views

How to include plugin function in theme's functions.php file

Good day, I'm trying to reduce the jquery dom manipulations by including the right plugin functions in my theme's functions.php file. For example, I have a link which triggers a jquery dialog, which ...
0
votes
1answer
345 views

How to make featured image thumbnails on index page load smoother?

I'm using a theme called Hatch Pro, which is a gallery based theme and the index page displays the posts using the featured image. You can see it here. On slower browser environments, the images ...
2
votes
2answers
70 views

How to stop loading multiple copies of jquery

My wordpress header.php and function.php is given below.please help me to modify my php code to stop problems due to loading jquery multiple times. My plugins and themes are loading jquery multiple ...
0
votes
1answer
20 views

Removed jQuery script from header.php , any problems?

To avoid multiple jQuery calling from my theme and plugins, I removed <script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ...
1
vote
1answer
834 views

Intergrating agile carousel to wordpress: how to write the ajax_callback function

json is totally new to me how to write an ajax_callback function for agile carousel to work in wordpress? Below is the jason data format that I need to write as php arrays for it could be parsed by ...
0
votes
0answers
26 views

Set up dataTables row delete rather than php and page refresh

I am using the dataTables jQuery plugin to display a table in a wordpress site with data from a custom table and it works well. I have added select check boxes and once a row or rows have been ...
0
votes
1answer
29 views

How to prevent plugins from loading jQuery

I recently downloaded a free plugin from wordpress.I want to remove the plugin from loading jQuery because you experts know that it is already loading from wordpress header.php file. The plugin is ...
0
votes
1answer
1k views

Accept AJAX call with serialized form data

I'm trying to pass a wordpress plugin some form data via ajax and it works just fine, unless the form data is serialized, then the server responds with an error message. I'm stuck with this for days ...
0
votes
1answer
729 views

infinite scroll page number

On this guys blog he's using infinite scroll and it's appending the page number to the url so when you click on a story and go back, you start off where you were. http://alex.clst.org/dbd/ I'm using ...
0
votes
0answers
12 views

Run Jquery Script after delete post in front end

I have a list of posts on a page on the front end. With each post I have created a delete button with get_delete_post_link. This works fine but I now need to execute some jQuery after the post is ...
2
votes
1answer
139 views

How do I setup nested repeatable option fields?

I'm trying to wrap my head around how to create a set of option fields that should be able to repeat for as many times as possible. But I'm having a hard time to figure out how to proceed. Currently ...
0
votes
1answer
14 views

What is the process for reimplementing a back up WordPress?

WordPress noob here. I'm helping a friend migrate her WordPress themes and change servers. I've already moved the WP across servers, but now I'm working on changing the theme on my localhost dev site ...
0
votes
2answers
349 views

Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)

I've searched a lot for this and I seem to get different answers. In my situation, my jQuery function has to use a PHP variable from a different file. How can I accomplish this? Clear and simple ...
0
votes
0answers
154 views

Uncaught TypeError: undefined is not a function (shortcode-box)

I have a Wordpress theme that the author is no longer maintaining, and has stopped functioning properly with the update to Wordpress 3.x. Over the past few months, I have been working to resolve the ...
0
votes
0answers
27 views

Get Page content to displayin Bootstrap Modal

Ok I'm a relative novice here, and after looking around I still haven't found the answer to my problem. I'm basically trying to link a Bootstrap Modal to some text in a footer (widget), the content of ...
0
votes
1answer
15 views

In the Edit Post page how do I modify with jQuery the status select list?

Here is my JS: jQuery('#post_status option[value="draft"]').text('Approve'); I simply trying to modify the text inside the option element in the status select form element in the Edit Post page. ...
0
votes
1answer
32 views

Using AJAX in WordPress Widget

The past few days I've been Googling and searching for answers to no avail. I'm building out a "Featured Content" widget where the user can easily (via ajax/jquery) search for posts. Is it possible ...
0
votes
0answers
15 views

Page load twice when form submit [migrated]

I have this code which retrieve data from the visitor and then sending the data to php code through a hidden inputs. I send all this data on page load so the page load twice(the normal loading then ...
0
votes
2answers
51 views

Manipulate retrieved ajax data in php

I made a basic ajax request to 2 variables. I want the values to be sent and manipulated in the back-end in order to use them in a database query. All that should happen on page load. My main.js code: ...
0
votes
0answers
15 views

wp_next_scheduled() with jQuery Countdown

I'm working with the jQuery Countdown timer for the first time and I wanted to integrate it into my Wordpress site to display the time until the next scheduled cron event. When the countdown has ...
0
votes
1answer
235 views

Javascript/jquery loads super slow (around 6 seconds) which affects only homepage

I got a custom wordpress theme from a developer but he isn't responding to me anymore. Basically my homepage takes ages to load which causes all the elements on the homepage not function until the ...
0
votes
2answers
34 views

Jquery was not found on this server

I have two pages, events.php from plugin1 index.php from plugin2. in events.php. I am including jquery for ajax loading <script ...
0
votes
1answer
1k views

Using AJAX to run sql statement and populate dropdown

I am trying to create a search where the user select two different bit of data from databases and it them prints some results that meet requirements. I know I need to use ajax or something similar but ...
0
votes
0answers
88 views

Unable to pass variable from jQuery/AJAX to PHP

I'm trying to pass the Post ID of an Option in a Select Drop Down field in Gravity Forms through jQuery/AJAX in order to be used in a different PHP function to dynamically populate a second Select ...
1
vote
3answers
4k views

Unhook jQuery from WooCommerce via `functions.php`? [closed]

So I am using the http://woothemes.com/woocommerce/ plugin for eCommerce and it's registering jQuery local and conflicting with my default jQuery call from Google CDN. It took a long time but I ...
2
votes
2answers
86 views

WordPress Script Loading/Unloading — wp_deregister_script('jquery')

I have a few questions relating to WordPress loading / unloading up javascript tools. After reading a nicely written response to a question by Pieter Goosen, that got me to do a bit of studying and a ...
0
votes
1answer
55 views

Ajax +wordpress onClick link redirect to new page and create html content

i have two pages in my wordpress plugin index.php charts.php in index.php i have some content and some link.. <a onclick="show_trend()" >Trend</a> while clicking this link ,i have ...
0
votes
1answer
1k views

Parse wordpress blog data using json api and ajax

I have seen lots of responses to how to extract data from wordpress blog posts using the json api plugin. Many uses $.getJSON, $.ajax, .responseData.feed.entries, success function() etc. What is the ...