updated   : May 15, 2012
we now have 588 snippets
category jquery
By : , on February 20, 2012 9:00 am

Disable dragging of metaboxes within admin

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will disable all dragging of metaboxes within the admin. Please note that this includes dashboard widgets as well.

read more
By : , on August 19, 2011 9:00 am

Highlight comments using #comment-hash and jquery

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add class=”highlight” to a comment when visiting a comment URL eg: wpsnipp.com/category/post/#comment-12 Don’t forget to create some css for the highlight class!

read more
By : , on August 02, 2011 9:00 am

Loading jQuery from the Google CDN with wp_register_script

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will register and include jquery from the Google CDN.

read more
By : , on March 17, 2011 9:00 am

Add custom media_buttons for shortcode selection

wordpress snippet

I was looking for a simple way to create a menu for my shortcode items and although you can create tinymce plugins I found it to be a pain. So I decided to create a simplified select menu that would require me to change a little HTML to add new items. Adding this wordpress snippet to the functions.php of your wordpress theme will add a new select menu beside the add media icon. Edit the value= to change the inserted text.

read more
By : , on November 01, 2010 3:32 am

Automatic jQuery inclusion

wordpress snippet

Adding this code to the functions.php will automatically insert Jquery into the header of your wordpress theme.

read more