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.
0
votes
0answers
24 views
How to change links in the 3 main categories, on widget category, to a javascript function call
I'd like to know..
How could I change my 3 main categories links, so they call a javascript function?
I'm using Snapshot Theme from WooThemes.
Here's the current state of the website:
...
0
votes
0answers
7 views
Lightbox popup on WooCommerce add_to_cart action
I would like to create a modal 'pop-up' window in WooCommerce to appear when the "Add to cart" button has been clicked. This has to occur after the WC actions that actually add the product to the cart ...
-1
votes
0answers
22 views
Responsive Slideshow plugin [closed]
I’m searching for a Slideshow plugin where I can configure the appearance of the next and previous elements like in the attached screenshot:
Or maybe you have some good workarounds or ...
-1
votes
0answers
32 views
Isotope and query_posts
I'm experiencing an issue with Isotope jQuery and the Sampression theme.
I'm using a simple query_posts on my index page to view only one category.
It works fine at the first view, but when I click on ...
0
votes
2answers
40 views
Pull GetOption() variable into jQuery dynamically created html
I have a page with the following markup in the site theme footer:
<div id="modalpopup"><div id="inside"></div></div>
I have a variable in the WP db I can retrieve via ...
-1
votes
1answer
21 views
jquery: cycle + touchwipe [closed]
I have a Wordpress site that uses WPSHOWERS Sight theme. There's a slideshow on top on the opening page that I presume uses the cycle js, which I would like to make responsive to touch (so you can ...
0
votes
1answer
13 views
Blip Slideshow plug in Mootools/jQuery conflict
This particular site uses the Blip Slideshow plug in (because it's fed by a Picasa web rss feed) and also a jQuery powered slider. The plug in inserts the Mootools script links ahead of the jQuery ...
1
vote
1answer
16 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
81 views
+50
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
2answers
34 views
Enque Javascript in Footer?
I currently enque jQuery like so - how do I move this to the footer instead?
// Enque: jQuery
if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
function my_jquery_enqueue() ...
0
votes
0answers
17 views
Settings- API: Creating setting fields on-the-fly
In this tutorial about how to create a settings page, the author creates a select element with style display:none.
<li class="front-page-element" id="front-page-element-placeholder"
...
0
votes
0answers
14 views
How to disable controls in theme customizer?
I am trying to figure out how to disable controls in the theme customizer but I can tell there isn't really much if any info on doing so. More specifically I am looking to implement some basic logic ...
0
votes
1answer
23 views
WooCommerce - PrettyPhoto appending URL with #prettyPhoto
For some reason the PrettyPhoto script that WooCommerce is now using is adding #prettyPhoto to the end of URL's once it's been opened in that page.
See here for an example
Also, when you close the ...
-1
votes
0answers
29 views
jQuery doesn't working [closed]
I completed a WordPress theme (used xampp as local server) so I installed it on my server. jQuery works fine locally, but only one script works on my server. The truth is I could use less javascript ...
-1
votes
0answers
27 views
jQuery script gives 500 error [closed]
As I was testing my own code with Chrome Developer Tools, it started reporting that
<script type='text/javascript' ...
1
vote
0answers
22 views
Bypass nonce value while trashing a post
I want to move a post in trash but the condition is that simultaneously I need to delete some more posts. Sample Code:
jQuery(function($) {
$('#delete-action a').unbind();
$('#delete-action ...
0
votes
0answers
25 views
get_option include <br /> in my adsense
As title said I saved in wp-options -> option_value a adsense code but when I try to display to website in the code I get some
"<script type=\"text/javascript\"><!--<br ...
-3
votes
0answers
24 views
WP 3.5.1 Causes jQuery TypeError in jquery.js below 768px window size [closed]
I've got a pretty interesting issue here. As the title says, the 3.5.1 upgrade (from 3.4) causes a TypeError in jquery.js, but only below window sizes of 768px wide.
Uncaught TypeError: Object ...
-2
votes
0answers
19 views
Facebook conflict on my wordpress [closed]
On my wordpress website I have a lot of facebook interactions like og.watch, fb.login and others. For example I use:
http://w.sharethis.com/button/buttons.js
for some buttons and this js include ...
0
votes
0answers
49 views
Advanced Custom Fields and Select2 or Chosen jquery
I'm using "Advanced Custom Fields" plugin and I'm trying to use Select2 or Chosen with the post_object field to provide a nice interface for a multiselect.
The only documentation I have found is ...
2
votes
2answers
110 views
How Do I Use jQuery UI In My Plugin
It's a sad day in the world when I Google something and it returns nothing. I am trying to use the default datepicker (or ANY datepicker at this point) and am unable to because of my lack of ...
0
votes
1answer
76 views
Ajax Validation for reCaptcha
Background
I have a registration form that validates with AJAX using jQuery Validation Engine. The form was created using Theme My Login and contains reCaptcha which I implemented using WP-reCAPTCHA.
...
0
votes
2answers
63 views
jQuery accordion plugin won't work once used in WP
I'm tryin to use this accordion script in my WP: http://www.armagost.com/zaccordion/
Problem is that on a standalone html/php file it works well but once pasted in my header.php file there's no way ...
0
votes
0answers
31 views
Get image URL from media library in input
On wp-admin/post.php?post=447&action=edit for example I have a link and an input.
The link appears as follows:
<a href="#" class="button insert-media add_media" data-editor="tj_image_url" ...
0
votes
0answers
19 views
Creating an events calendar where users can enter events via a custom post type
I'm building a plugin that enables users to add events via a custom post type. The custom post type with have a meta box with two fields: one for the event date and one for the event time. I know how ...
0
votes
1answer
28 views
Screen Options JavaScript Code
I want to know, what script drives the "screen options" animation toggle in WordPress.
I'm referring to the options menu that slides out when the admin clicks the "Screen Options" link near the ...
0
votes
0answers
52 views
Sorting UL Listing Within the TinyMCE Visual Editor in Wordpress
I am trying to use jQuery sortable within the TinyMCE Visual Editor in WordPress. I have had some success in that I can get a UL list to sort, but only if I drag the mouse OUTSIDE of the actual ...
0
votes
0answers
21 views
Problem with function not executing
I am sorry for the long post but I wanted to be thourough in hopes someone could help me figure out this issue. I have been trying to get it working for 2 days with no such luck. I would appreciate ...
0
votes
1answer
41 views
Using page-id-{ID} from body_class() in local dev, versus live staging
Not sure this is a question suitable for this forum, but I'll try:
I think it is pretty convenient targeting elements in css/jQuery for a specific page by using the page-id-{ID} generated by ...
0
votes
1answer
34 views
Why is ajax working on one server and not the next?
I have some script that works on my dev server but not on my staging server:
add_action('wp_head','get_gz_info',30);
function get_gz_info(){
?>
<script ...
0
votes
0answers
26 views
Loading a purchased jquery plugin in a wordpress theme
I purchased a 360 Panorama jQuery plugin that I would like to integrate into my wordpress site. All the tutorials I've read said to include the function add_my_script() and
wp_enqueue_script tags to ...
0
votes
0answers
8 views
floating div stop at a div [migrated]
I have a floating div on the sidebar that scrolls with the page. Is there a way to add code that makes it stop when it reaches the footer?
See code in action: http://openbayou.staging.wpengine.com
...
-2
votes
1answer
29 views
Make this jQuery toggle snippet target each list item individually [closed]
I'm currently using this little jQuery toggle snippet to show/hide child categories using the wp_list_categories function;
$('.sidebar ul.children').hide(); // Start by hiding child categories
...
0
votes
2answers
70 views
Custom search: Search posts but display parent page in results
I'm using Wordpress 3.5.1 with a modified twentytwelve theme.
My main site structure is based on the Smooth Slider plugin (jQuery Cycle).
I have Pages that contain only a shortcode (for example, ...
0
votes
1answer
67 views
Title on hovering on the featured image
I have used the following code to make a slideshow of the featured image of a category.I want to show the title of the post when hovering on the image. But I don't know how to do it. Anyone please ...
0
votes
1answer
48 views
Disable auto hide of the login form on Woocommerce's checkout page
I'm in the process of trying to style a checkout page in Woocommerce and need the login form to be visible all the time when the user is not logged in rather than initially hidden then toggled on and ...
0
votes
3answers
53 views
Jquery plugin not working on single pages
I use a news ticker jQuery plugin to show the last posts.
The codes are in the header.php file and work fine on the home page, but not on single pages. The links are loaded but they don't move.
Here ...
8
votes
1answer
193 views
Using jQuery to delete data stored in wp_options
I wonder if anyone could advise me further on my problem. Part of my plugin stores log files for debugging purposes. I have successfully displayed them in a (div#log) in my admin page using jquery ...
0
votes
0answers
33 views
jQuery vs. $ - Creating jQuery scripts in JavaScript in WordPress using External Libraries
I am trying to utilize Trent Richardson's Date Time Picker (see here).
I am trying to get the selected time when the popup closes, so I am using the following code (in an external .js file):
...
0
votes
0answers
14 views
customizing jquery with ubermenu jquery API's
I am having a heck of a time trying to get this simple function to work in WP using ubermenu:
My goal is to have dropdown menu-itm-156 fire when the document.ready and control it based on which page ...
0
votes
1answer
35 views
wordpress widget missing jquery
I have live score website and it is not wordpress based i build a widget for pure php websites but now i want to offer the widget to wordpress users problem is when i tried the widget i get three ...
1
vote
0answers
35 views
Using window.onload with Ubermenu
I am using a plugin to place this code on specific pages. But it is not firing correctly.
Has anyone had experience working with Ubermenu, WP and jQuery? Do I have to call jQuery into my ...
0
votes
0answers
32 views
Show the image specified in src
I'm trying to find a way to state "if" there is an image in the description of a Wordpress post show the image specified in src instead of from the data-img attribute. Right now I'm using a JS plugin ...
3
votes
2answers
76 views
Pass PHP variable to javascript
Is there any possibility to pass some PHP variables in javascript so I can use them later?
Only in single.php.
I heard about wp_enqueue_scripts but with that it is neccesary to declare a path to a JS ...
0
votes
0answers
19 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
2answers
43 views
Theme not calling Jquery properly
I am developing a theme and I have called jquery along with other JS files from a theme-enqueue.php file. For some reason only the Jquery file that is hosted on googles servers is adding the theme URL ...
0
votes
1answer
32 views
How to use Facebox in WordPress theme?
I am trying to add Facebox (a lightbox type image viewer) to my WordPress theme at but presently the images are not loading. I have tried hard coding this and also using the Facebox WP Gallery plugin ...
0
votes
0answers
28 views
How to make this scroll script work on just one post
I currently have a jQuery scroller on a website I am developing so that when a visitor hovers over an arrow the content scrolls up and down.
This is fine on single pages, but I now need to include ...
0
votes
0answers
52 views
Post thumbnail to append post content via ajax click event
I've searched hi and dry, tried various tutorials but I just cant get anything to work and its been a good 3 weeks now :(
I have a loop that displays custom post thumbnails in a grid using this ...
-1
votes
0answers
100 views
get checkbox values with jQuery [closed]
I have a checkbox with multidimensional array which I was using with php submiting. Now I'm rebuilding my code to use ajax.
<li class="formVariationParent">
<input checked="" ...