wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Add post category to body_class on single posts

wordpress snippet

This little snippet will take all the categories assigned to a post and add them to the body_class “sgl-cat-{category-name}”.

read more

Force dashboard to display a single column only

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will force the wordpress admin dashboard to display in a single column only.

read more