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

Add a Class to ‘the_post_thumbnail’ a Featured Image

wordpress snippet

When adding a featured image to a template, you may want to add a class to the image tag that is being generated. This extra class will allow you to use CSS to format it better.

read more

Increase the excerpt field height

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will increase height of the excerpt field within your post editing screen.

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

April fools: flip everyting on your website

wordpress snippet
april-fools-flip-everyting-on-your-website

    Now this is not a wordpress snippet as I would normally post however this is april fools. Adding this css to the body within your style.css document will flip your website upside down.

    read more

    Custom CSS per post

    wordpress snippet

    Great snippet from digwp.com this will use a specified CSS file based on post ID. Create a new directory within your theme called art-direction then create a new css file for the specified post in this format style-0000.css where 000 is the post ID.

    read more

    Alternate odd even post class

    wordpress snippet

    Adding this PHP code to your wordpress theme will append odd or even classes to post_class function.

    read more
    jqsnipp.com | we just launched jquery snippets website