updated   : May 15, 2012
we now have 588 snippets
By : , on November 07, 2011 9:00 am

Add a custom class to the_tags

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a custom class to links output by the_tags template tag.

read more
By : , on November 04, 2011 9:00 am

Add a custom class to wp_get_attachment_link

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a custom class to wp_get_attachment_link.

read more
By : , on October 06, 2011 9:00 am

Add post class to posts with read more link

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a post class to posts that contain a read more link.

read more
By : , on September 21, 2011 9:00 am

Remove every class and id from the wp_nav_menu

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove nearly every class and id from the wp_nav_menu except for the current-menu-item class. This is a great little snippet that will make your wp_nav_menu a little cleaner enjoy.

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

Add custom body_class to all post and pages

wordpress snippet

This is similar to another body_class post I made however I had a few emails asking about just adding a specific class to the body on every page. Adding this snippet to the functions.php of your wordpress theme will let you add specific classes to wordpress body_class function. Don’t forget to add <?php body_class(); ?> to the body tag within header.php.

read more
By : , on May 18, 2011 9:00 am

Add custom body class for specific pages

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you add a custom body class for specific pages. Add the second snippet to the header.php template replacing your default html body tag.

read more
By : , on April 15, 2011 9:00 am

Allow more HTML tags in the editor

wordpress snippet

By default the wordpress editor does not allow some tags and will strip them out. Adding this snippet to the functions.php of your wordpress theme will enable you to use HTML tags like iframe, name, class etc…

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

Replace admin and user comment class

wordpress snippet

Wordpress creates a class name for your comments using your username and for security reasons you may wish to change them. Adding this snippet to the functions.php of your wordpress theme will remove and replace the admin and user class names within your comments.

read more