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.
1
vote
2answers
49 views
jQuery breaking my wordpress site
I am including jQuery in my header.php file like this:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script>
But when doing this, it breaks my home page ...
1
vote
2answers
1k views
How do I “unhook” / de-register jQuery so that it's not called as part of wp_footer();?
I need to "unhook" jQuery from my wp_footer() ... it's being called automatically and I'm looking for something I can add to functions.php which prevents it from being called a second time in the ...
1
vote
1answer
533 views
How do I pass WordPress's get_bloginfo('siteurl') to Jquery?
I'm guessing this is a really dumb question, but I'm far more familiar with PHP/WordPress and I'm just getting started with jQuery so I'm not even sure what to search on. Is there a way to pass the ...
1
vote
3answers
2k views
Check if jquery library exist
How to check if jQuery library exist in head tags?
<head>
<script type="javascript/text" src="http://code.jquery.com/jquery-1.6.2.js"></script>
</head>
and if not exist how ...
1
vote
2answers
644 views
Jquery conflict
I have been trying and trying to fix jquery issues. i have in my header lots of jquery. I use it for slider and other things that are built into this premade theme. I am unable to add anything that ...
1
vote
2answers
439 views
Get current logged in user under 3.1, re: remove “Howdy”
I use this in functions.php to change "howdy" to "Logged in as...." But now under 3.1 I get "Logged in as Your Profile" rather than "Logged in as <current user>"
What needs to be changed so ...
1
vote
3answers
538 views
WordPress Featured Post Slider
Alright, I have almost finished up a clients project in WordPress, but I have hit a wall. I am not really great with jQuery (and I have yet to find a plugin to achieve what they are looking for). The ...
1
vote
1answer
967 views
How to get Ajax into a theme - without writing a plugin?
Okay, I'm starting out with some AJAX stuff in a wordpress theme
1) I'm building a child theme OFF the thematic framework
2) My child theme has a header.php, index.php, functions.php and style.css ...
1
vote
3answers
416 views
Bind to WPSetAsThumbnail
is there a way to bind some extra script to the WPSetAsThumbnail function? the function automatically inserts the image into the post's metabox, but what if i wanted to do something else with it? ...
1
vote
1answer
126 views
Mixing Regular Javascript With jQuery in a Plugin
Sorry for a simple question.
I'm learning about plugins. I've got some javascript that I want to put in a jQuery file in my plugin.
(I've got jQuery and the scripts enqueued, and working fine).
...
1
vote
1answer
103 views
Googles jQuery: Are There Avantages to Using It?
Are there any good reasons to pull Google's jQuery from their servers as opposed to using the one included with Wordpress?
I'm confused as to why I might want to use Google's library. Doesn't ...
1
vote
2answers
2k views
How to enable the content editor as a droppable target with jQuery-ui?
I'm trying to enable the WordPress content editor as a droppable using jQuery UI drag and drop. However, I can't get the drag to drop, or the drop event to fire.
Is there something I'm missing?
...
1
vote
1answer
725 views
.cycle is not a function
I'm having a problem I've never seen before. In a very new WordPress install, I uploaded a theme I had been working on for a friend's restaurant: CornerPocketPub.com
The problem, as you can see, is ...
1
vote
1answer
390 views
different template for first and second level custom post page
I have a custom post type, for examle, products. They can be multilevel, like pages, f.e.,
Products (custom post type)
Books
|- LOTR
|- Sherlock Holmes
|- Cooking help
|- etc
...
1
vote
1answer
285 views
Automatic jQuery accordion from header tags
I want it to be fairly easy for the post author to setup an accordion, based on header tags. So for example this:
<h3>Headline 1</h3>
<p>Content.. lorem ipsum</p>
...
1
vote
3answers
815 views
Best approach for loading a sidebar Only if the screen max-width is >900px?
I have been playing around with media queries quite a bit lately and I love the concept. It is so easy to display images or change div floats depending upon what the users screen max-width is.
I'm ...
1
vote
1answer
399 views
Toggle Sidebar Display
I'm developing a WordPress theme that allows users to toggle the visibility of the sidebars using Javascript in the same way that wikis allow users to show or hide a table of contents.
When a user ...
1
vote
2answers
339 views
Is it worth updating WP admin to jQuery 1.5?
I read that jQuery 1.5 has just been released.
Do you think that replacing version 1.4.2 with this new release is worth in terms of pure performance (on the admin side because my current theme does ...
1
vote
2answers
677 views
Most efficient way to add javascript file to specific post and/or pages?
I am wondering what the most efficient method is to add a javascript file specifically for a post and/or page.
Here are a few solutions I came up with:
Switch to HTML editing view and post your ...
1
vote
2answers
1k views
Enqueue jQuery in WordPress
Building my first theme from scratch in Wordpress 3.4.1, I know Wordpress already has the latest version of the JQuery via Google. I have read about issue's if the script is not called properly, so ...
1
vote
1answer
529 views
force enqueue script to be first in order of prominence
I have a few scripts which are being enqueued,
the problem is that I want to force the order of prominece to which these scripts are loaded. There is one in particular which is loaded from a plugin ...
1
vote
1answer
771 views
Add a Fancybox automatically to post type “post” images
Currently, on my homepage (which is a list of posts), if you click an image it opens in the same window as a full size image.
I'd like to change it so that when a user clicks said image it opens into ...
1
vote
4answers
1k views
How to load a jQuery script last?
How to get this to load last?
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("div.domTip_tipBody").mouseover(function(){
jQuery("#yyy ...
1
vote
3answers
467 views
add_image_size and iPad Retina Display (high pixel density)
i was just wondering if anyone has come up with or thought about a solution for inline images and the new iPad coming out.
i would love to use a combination of add_image_size and this jQuery Script ...
1
vote
2answers
377 views
Auto-detect javascript errors and warn theme user
This may sound simple, but it's not :)
What I want, and most likely many theme developers do (themes that use javascript / jquery), is to warn the theme user that his site has javascript errors.
In ...
1
vote
1answer
301 views
enqueue the scripts
I have a template that has been hardcoded in the header and it needs to be Enqueued. I don't know what to do and the template provider is giving me the run around. JQueries won't work because of it. I ...
1
vote
1answer
172 views
Tags in Wordpress 3.2
Why I can't add tags since Wordpress 3.2 ?!
Ajax doesn't seem to work...
I gonna be crazy.
Any help please ?
1
vote
1answer
1k views
Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
I am trying to render content generated by a php file in [jQuery Colorbox][1] through AJAX in my WordPress site. The PHP resides on the same server in the same domain. It works perfect when I run it ...
1
vote
2answers
301 views
Can I make simple global tooltips in Wordpress?
We wish to have ALL external links within a Wordpress site have a simple mouseover tooltip without having to place a title tag or rel or class tag within it. I've tried several methods using the ...
1
vote
1answer
983 views
Can't use get_results() in ajax query
I'm using a jquery ajax call to get certain data from wpdb and I'm getting the following message:
<b>Fatal error</b>: Call to a member function get_results() on a non-object in ...
1
vote
1answer
534 views
AJAX Contact Form Issue
I created a contact form for my sidebar that is working perfectly in Chrome but not in IE or FF.
I've been staring at it for hours and can't find out what I did wrong.
I'm not getting any errors ...
1
vote
2answers
429 views
Including jQuery in Wordpress
I am using the code below to include jQuery in my Wordpress installation. I was previous calling the jQuery file using the standard HTML script but this was causing problems with a Wordpress plugin ...
1
vote
1answer
1k views
Disable Jquery UI post tabs
Hey all,
I'm using Jquery UI tabs with the WordPress Post Tabs plugin and it works like a charm. However, I'd like to auto disable or hide tabs that do not have any data. I've worked with Jquery quite ...
1
vote
1answer
2k views
php ajax problem - weird 301 responses!
hey guys, I really really need your help. I have just no idea why that happens.
I'm trying to load a wordpress page with the jquery $ajax method. However my browser is crashing all the time when I ...
1
vote
1answer
258 views
modifying a template and adding jQuery to it
There is a page template called "All Bookmarks" for displaying all links grouped by category. I want to modify it 2 ways:
each category of links should be collapsible/expandable by clicking on the ...
1
vote
2answers
1k views
Wordpress Jquery Confliction with Plugin
Hey guys, thanks in advance for your help. I've done my research and I'm a bit stumped with this...
I'm building a Wordpress website for a client and it is going to have an e-store. I'm using ...
1
vote
3answers
444 views
How to load default scripts included with WordPress correctly?
I want to know the correct way to load existing scripts in wp-includes/js/jquery/
Example I want to load jQuery UI Tabs
What I have done for now
function sample_exists_code() {
echo '<script ...
1
vote
2answers
343 views
Fancy-box Esay wordpress plugin fails to work on Multilingual site
I have a multi lingual site.
On the site I want to display youtube movies using fancybox (or any other equivalent solution)
The plugin is installed and set.
When checked on the He version - all works ...
1
vote
1answer
83 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
vote
2answers
250 views
Call the content of a page in AJAX in Wordpress
Out of Wordpress, I've made a simple index page wich call the content of 10 other pages thanks to AJAX. Now I need to put this into Wordpress and the AJAX calls don't work at all.
I have created the ...
1
vote
1answer
116 views
Using Underscore Templates in WordPress
I've noticed that since WP 3.5 that we now have the Backbone.js and Underscore.js libraries included. The new Media Modal uses Underscore templates and I was wondering how would I be able to insert ...
1
vote
1answer
143 views
How do I get my page to load the jQuery UI Effects library?
I'm using javascript for the first time to do some simple animations on the home page of my website. So far I have added the following to my header.php file (which is only used for my home page), ...
1
vote
1answer
26 views
jQuery inluclude still seems ncessary for script to work within post
I have a jQuery script that works fine within a WordPress post as long as I include a reference to the jQuery libarary within the post.
<script ...
1
vote
2answers
292 views
how to add Jquery script to one page?
What is the best practice to apply an individual script to a particular page? When I try to apply the script of the whole page it has problems with other plug-ins. Is there a rule of thumb?
...
1
vote
1answer
159 views
Ajax comments not working
I followed a tutorial to 'ajaxify' wordpress comments where it does not reload the page:
jQuery('document').ready(function ($) {
$('#commentform').each(function () {
var commentform = ...
1
vote
2answers
388 views
wp_verify_nonce not working
I'm working on an ajax request, I have several ajax requests on my functions.php. And all are working, but this:
On my php I have this:
add_action("wp_ajax_fb_points", "get_fb_points");
...
1
vote
1answer
151 views
wp_enqueuescript won't load in footer even with true value set?
Below is my code for enqueue my scripts and css. I am trying to get the JavaScripts to load in the footer of my site, but when I view source I see them loading in the header. I suppose the "true" ...
1
vote
1answer
855 views
Bulk Image upload and one image for each post?
I have around 3000 photos, want to upload on WordPress. Is there any way to bulk upload all the photos as one image for each post ?
1
vote
2answers
862 views
Combining media queries with image sizes
I have a set of image sizes for WordPress that look like this:
add_image_size('1039', 1039, 697);
add_image_size('960', 960, 644);
add_image_size('800', 800, 537);
add_image_size('768', 768, 515);
...
1
vote
1answer
273 views
Firebug : Problem with jQuery in WordPress admin panel
I'm trying to make my first plugin and I have a problem with firebug. When I use firebug console in WP Admin Panel doesn´t work correctly. For example when I use the selector $('#wpbody') the console ...