Title: Remove  classes,  such  as class=&#8221;entry&#8221;
Last modified: August 19, 2016

---

# Remove classes, such as class=”entry”

 *  [pixelhub](https://wordpress.org/support/users/pixelhub/)
 * (@pixelhub)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/remove-classes-such-as-classentry/)
 * Hi,
 * I’m sure this has been asked before (and i have searched), but i just can’t find
   a solution.
 * I was wondering how you remove all the classes that wordpress adds to the code
   such as
 * class=”page_item page-item-2″
    class=”entry” class=”pagenav”
 * and so on…
 * I know you can edit some core files like wp-includes/classes.php and wp-includes/
   category-template.php but is there an easier way, like a plugin of a bit of code
   that will remove the classes.
 * Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/remove-classes-such-as-classentry/#post-1244958)
 * WordPress doesn’t add most of those classes. They’re part of your theme and, 
   without them, your pages may not look very good. The only one that looks like
   a core class addition is `page_item page-item-2` but, if you don’t use those 
   CSS hooks, you can just ignore them. What’s the point in removing them?
 *  Thread Starter [pixelhub](https://wordpress.org/support/users/pixelhub/)
 * (@pixelhub)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/remove-classes-such-as-classentry/#post-1244966)
 * Thanks for the reply,
 * class=”entry” was a bad example, I was looking to reduce the amount of code that
   was generated. It not a problem I just don’t like the fact that there is useless
   code filling out the pages.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove classes, such as class=”entry”’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [pixelhub](https://wordpress.org/support/users/pixelhub/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/remove-classes-such-as-classentry/#post-1244966)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
