Title: How to remove the default css classes
Last modified: August 19, 2016

---

# How to remove the default css classes

 *  [Alphard](https://wordpress.org/support/users/alphard/)
 * (@alphard)
 * [16 years ago](https://wordpress.org/support/topic/how-to-remove-the-default-css-classes/)
 * I want to remove all the automatically added CSS classes to my menus (e.g. page-
   item, menu-item) since I’m using my own classes and I want to make the code smaller
   and cleaner. Any way to do it other than stripping them manually using something
   like preg_replace()?

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

 *  Thread Starter [Alphard](https://wordpress.org/support/users/alphard/)
 * (@alphard)
 * [16 years ago](https://wordpress.org/support/topic/how-to-remove-the-default-css-classes/#post-1655581)
 * Anyone?
 *  [loremipsum](https://wordpress.org/support/users/loremipsum/)
 * (@loremipsum)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-the-default-css-classes/#post-1655830)
 * I’d also like to find that out.
 * WordPress is bloated with unnecessary markup. I wish there was an option to turn
   it off during installation.

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

The topic ‘How to remove the default css classes’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [loremipsum](https://wordpress.org/support/users/loremipsum/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-the-default-css-classes/#post-1655830)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
