How to remove unwanted WordPress classes

This snippet will let you create a white-list of terms to include in body_class. This is a great way to filter out many of the unwanted WordPress css classes added.

Add this to your functions.php file.


Leave a Reply

Your email address will not be published. Required fields are marked *