Think outside the box
Start
How to: show/hide a widget in WordPress with jQuery
In
Remove the title attribute using jQuery
In WordPress, when you use wp_page_menu your anchor attribute’s usually carry a title with the same name. I’m not sure if it’s correct to do this, but it bother me when I hover over a page menu navigation link and I get a hover of the title.
So on my site I used jQuery to remove the title:
$("#nav a").removeAttr("title");Pretty simple huh?
Click here to continue reading
How to: Open external links in a new window
Over the weekend, I attended WordCamp Denver, and I was asked by John Hawkins how to force links to open in a new tab with out editing the source code. So, today lets learn a simple jQuery trick to open all external links in your site in a new tab or window. We are going to make sure you have jQuery active on your site, you can do this easily in WordPress, since it’s bundled with the latest installations. Use this code in your header: <?php
Click here to continue readingHow to: Show/Hide any div box with jQuery in WordPress
If you take a look at my current sidebar (right) and see the heading Google Search you’ll notice that when you click it the Google Search box show’s into view.
Let me show you how this is done.
First make sure that your WordPress site is calling jQuery, buy pluggin this code into our header.php file above the <?php wp_head(); ?> text:
<?php wp_enqueue_script('jquery'); ?>Then anywhere above the </head >, plug this code in:
<script type="text/javascript"> jQuery(document).ready(function() { // hides the slickbox as soon as the DOM is ready jQuery('#toggle-search').hide(); // toggles the slickbox on clicking the notedClick here to continue readingFlip! A jQuery plugin
I just came across a interesting new plugin built on the wonderful jQuery library. It’s called Flip!, head on over and check out the cool demo!
Click here to continue reading
JDidIt.com
Comment Validation
Another plugin I am using on this site: Comment Validation by Jörn Zaefferer.
From Jörn’s site:
Why should you install it? Because you care for comments and want to help users reduce mistakes that hold them off from commenting at all.
Whats the technology used? jQuery and the jQuery Validation plugin with a few customizations to make it fit into the standard WordPress theme.
Is it compatible with other plugins? The plugin is tested with the Draw Comments plugin and works, though
Click here to continue reading