wordpress snippets last updated   : April 22, 2014
we now have 631 snippets

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

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
jqsnipp.com | we just launched jquery snippets website