pixelhub
Member
Posted 2 years ago #
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
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?
pixelhub
Member
Posted 2 years ago #
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.