Add a custom class to the_tags
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 moreAdd a custom class to wp_get_attachment_link
Adding this snippet to the functions.php of your wordpress theme will add a custom class to wp_get_attachment_link.
read moreAdd post class to posts with read more link
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 morethis months featured snippets
Remove every class and id from the wp_nav_menu
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 moreAdd custom body_class to all post and pages
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 moreAdd custom body class for specific pages
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 moreAllow more HTML tags in the editor
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 moreReplace admin and user comment class
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













