How to remove a class from post_class() – WordPress

If you want to remove any class from the post_class() function paste the following snippet into your functions.php file.

In this example I’m removing the “hentry” class.

2 Responses to “How to remove a class from post_class() – WordPress”

  1. Jamie November 6, 2014 at 1:21 am #

    THANK YOU!

  2. Daniel September 29, 2017 at 8:50 pm #

    perfect,
    thanks I was looking for it some time for my site to eliminate Google buys from the site.

Leave a Reply

Add <code> Some Code </code> by using this tags.