wordpress snippets last updated   : April 14, 2014
we now have 630 snippets

Browser detection and OS detection with body_class

wordpress snippet

Add the first snippet to the functions.php of your wordpress theme then add the second snippet within the body tag of your wordpress header.php template.
<body <? body_class(); ?>>
This snippet will add class based on the users operating system “windows, mac, linux” and also the browser including iphone and if Internet explorer the specific version.

read more

Alternate content for mac with user agent check

wordpress snippet

Using this PHP snippet within your wordpress template will allow you to display alternate content for MAC users.

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