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
5answers
71 views
Cannot get Jquery to work with wordpress
I can't figure out why Jquery isn't working on my Wordpress site. Am I setting it up right? Any help or suggestions is appreciated! Thanks.
Here is what I have in my function.php
function ...
-1
votes
0answers
19 views
Javascript Smooth Scroll [closed]
I am new to jQuery and Javascript. How do I make a smooth scroll to anchor links on my wordpress site. I tried different plugins, but they don't work on Safari. Thanks for all help.
Shaan
0
votes
1answer
19 views
Update Wordpress Custom Field with AJAX on cached page
I'm new to ajax am trying to create a simple hit counter that updates a custom field in Wordpress after the page loads. The page is cached, so any attempts to use PHP alone will not work.
I'd like ...
0
votes
0answers
25 views
Dynamically load JJ NextGen Slider/ Slideshow (dynamically add shortcode with jquery)?
My front page includes an image slideshow by JJ NextGen Slider (Link). Therefore I am using PHP and do_shortcode(). This is the full code:
<?php echo do_shortcode('[jj-ngg-jquery-slider ...
0
votes
0answers
76 views
Save Changes function after table is sorted using jquery
I have a simple table, and the jquery works great for sorting. The fields drags an drops perfectly, and updates then and their. Also of course the data in the fields are saved in a array. The data in ...
-1
votes
1answer
45 views
Set start page depending on screen width [closed]
I'm building a responsive theme and would like to have different start pages depending on screen width.
In this case, the start page is set in WP admin and contains an image map built on a cunstom ...
-1
votes
0answers
24 views
Inserting jQuery UI accordion in to posts/pages? [closed]
I've been looking at all the themeforest premium themes and notice they are including jQuery UI in to their themes, probably with some shortcode stuff.
Example - ...
-1
votes
0answers
12 views
Enqueue jquery in footer means slideshow images briefly appear on top of each other [closed]
I'm enqueueing jQuery in the footer of a Wordpress theme but when the page loads, for a brief moment, any images contained within a slideshow appear on top of each other
See this link for an example, ...
0
votes
1answer
26 views
Comment form vaildation
Good day everyone
I've build a custom comments form which hooks onto the default comment_form() in twenty twelve child theme. Here is my code: http://pastebin.com/RJcGyQ1j inside functions.php
If i ...
0
votes
1answer
29 views
Separate jQuery for Individual Comments?
So far I have designed this function to display rating stars on the front end below every comment:
add_filter( 'comment_text', 'additional_fields' );
function additional_fields ($below) {
...
-2
votes
1answer
19 views
Is there a simple way to make a carousel of related portfolio items in Themeforest's Nevada? [closed]
We're using Themeforest's Nevada, which features a portfolio functionality.
I was asked to make it so that each portfolio item would have a carousel (in the same style as the testimonial carousel on ...
1
vote
1answer
47 views
Cancel jQuery 'noConflict' - is it really unsafe?
I use some external plugins (not wordpress plugins), that use '$', and it's very convenient for me to cancel noConflict mode, by adding this line
$=jQuery
But I guess they invented noConflict mode not ...
0
votes
0answers
28 views
jQuery does not enqueue for my purpose… (before an inline script in the footer)
Following How to add a javascript snippet to the footer that requires jQuery
I am trying to load jQuery before my script does stuff but it's not working.
This is it working when I include jQuery ...
0
votes
0answers
29 views
Pull & display new comments without refreshing the page
I've just managed to implement ajax on comment submission and now members don't have to leave the page when they comment but still have to go one extra mile when they want to see new comments.
I've ...
-2
votes
0answers
27 views
“While Loading” plugin to display a “loading page” image until the page loads fully [closed]
I need a plugin like "While Loading", but one that works.
"While Loading" works great in Firefox, and that's about it.
Anyone know of a similar plugin that works in all browsers.
P.S. The plugin ...
3
votes
1answer
98 views
Ajax Load More Posts in Category Page
I am developing a theme where I need to load more posts with ajax. Currently, when I click load more on the category pages, all the posts are loading. The category.php looks like this : `
...
0
votes
1answer
55 views
wp_mail very slow
I have a question about the wp_mail() function. Right now I'm having the following button to send e-mail with:
echo '<input type="submit" name="send_button" value="verzenden" id="'.$post_id.'" ...
-1
votes
0answers
28 views
Customizing Ajax Rating System [closed]
The code below is a rating function that came with a recent Wordpress Theme I purchased. Basically, you click one of five stars to give a post a rating.
I was wondering if anyone would have advice on ...
0
votes
1answer
21 views
Assigning tags to a post from front end using tag-it jquery UI plugin
Tag-it is a jquery UI plugin that allows assigning tags, exactly like tags system in stackoverflow. https://github.com/aehlke/tag-it/blob/master/README.markdown
My goal is to allow members of my ...
3
votes
3answers
89 views
Best Practices for Seperating jQuery from HTML/PHP
I am creating several jQuery scripts to help validate forms before they are submitted. I have read that it is best to always separate jQuery scripts into a separate file so that you can load the ...
0
votes
1answer
34 views
Appending anchor tag to next post
I am making a one page wordpress site. There is a section of the website displaying content via category posts. There is only one post displaying at a time and I am using the following default code to ...
0
votes
1answer
44 views
Passing a varible from jQuery to PHP
I have a a bunch of li's that are a blog but i want to show them enlarged in a colorbox. Therefore I need to know which li I clicked so I can get that ID and use that in my query to get all the date ...
1
vote
4answers
64 views
Add a class to posts in increments of 2
Is it possible to add specific classes to posts/pages in a query in increments of 2?
For example
Post 1
Post 2
Post 3 (add custom class)
Post 4 (add custom class)
Post 5
Post 6
Post 7 (add custom ...
0
votes
1answer
64 views
Form Security: nonce vs. jQuery
I am trying to create a methodology for submitting forms on my WordPress site. In the past, I have used WordPress nonces in order to secure form submission, but I like the idea of using jQuery to ...
0
votes
2answers
101 views
adding the full image path to a wordpress javascript file
I am currently building a WordPress theme where I am using jQuery to append and prepend some ornate images to a h4 tag with a class of beechheader in the page template markup.
Before turning the ...
0
votes
1answer
47 views
Replacing WordPress Icons (menu,icons32, etc)?
I want to replace wordpress admin sprites. I recreated the images and looked answrs for icon replacement using jquery and simply with CSS BUT what about ones link icons32-2x.png where I can't find the ...
0
votes
1answer
44 views
Readonly input text appears unlocked while the page is loading
I need help with a code for locking editing an input of type text in the profile page of Wordpress.
I added the following code:
(function(){
$("#email").attr("readonly","readonly");
});
But ...
0
votes
1answer
21 views
Covert Wordpress Blogname into JQuery
Here is the blogname in php <?php $blog_title = get_bloginfo('name'); ?>
I want to convert it to javascript. The file I want the blog name is in a .js file so I cant create the variable with ...
-1
votes
0answers
30 views
How to add custom jquery to wordpress? [closed]
At my woocommerce site site im getting syntax errors, when im trying to add a custom function, so i must have implemented the function wrong. The code sample below is my functions.php file, where i ...
-1
votes
0answers
74 views
How to integrate jPanelMenu jQuery into WordPress [closed]
I would love to know how, if possible, to integrate a jQuery plugin into WordPress so it replaces the navigation.
Trying to integrate jPanelMenu in my WP site.
jPanelMenu is a jQuery plugin ...
0
votes
1answer
33 views
POST from jQuery to PHP
I have a form that passes field values to jQuery, which validates the fields and creates the variables being sent in data: {} in the snippet below.
$.ajax({
type: "POST",
url: "<?php ...
0
votes
1answer
52 views
jQuery Validate wp_editor
I have a form, and in the form, I use
<?php wp_editor('', 'user_submitted_progress', $settings = array('textarea_name' => 'user_submitted_progress')); ?>
to generate a TinyMCE, rather than ...
0
votes
0answers
78 views
Loop not appending through infinite-scroll ajax call
I'm having trouble debugging why the InfiniteScroll jQeury plugin isn't loading more of my .boxy class items. So far I've placed the div containing the selectors in different levels of heirarchy, but ...
0
votes
0answers
57 views
Creating a costing calculator plugin. How can the user create the calculations without coding?
I am relatively new to php & wordpress development. I am trying to create a plugin that allows the user to create an unlimited number of costing calculators. Users will be able to add fields ...
0
votes
0answers
24 views
videopress videos are not displayed when loading the content with ajax in a lightbox
I'm using videopress and I'm adding the videos into posts with the videopress shortcode, and when I visit the post I can see the videos and play them, but the problem is when loading the post with ...
0
votes
0answers
57 views
Embedding Separate YouTube Players for Each Video in a YouTube Playlist?
I've seen a lot of plug-ins and things that make new posts out of each video in a playlist, but I'm trying to figure out a way to grab all videos from a playlist and list them as separate YouTube ...
0
votes
1answer
43 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:
...
1
vote
1answer
256 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 ...
0
votes
2answers
69 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
38 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
29 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
39 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
300 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
2answers
58 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
29 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
25 views
How to disable controls in theme customizer?
Edit: I have rewritten the question in hopes I will get a reply from someone who knows the theme customizer.
I am trying to figure out how to disable setting controls in the Wordpress theme ...
0
votes
1answer
58 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
vote
0answers
33 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
28 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 ...
0
votes
0answers
115 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 ...


