Archived topic
Feature request: .entry-content class filter
3 replies · Started by Olaf on January 29, 2020
Hey,
topic says it all.
A filter to change the .enty-content class would be nice.
Sometimes I need to add classes to certain post types and I don't want to add child theme files just for that reason :P
.inside-article, .entry-header filter would be cool, too.
suggestion: 'generate_entry_content_class' :)
Or does anything speak against it?
THX!
Hi there,
I feel like we would need to add a filter to every single class if we were going with that route.
Couldn't you just target that certain post type using the unique class in the <body> tag?
Yeah, that would be a possible solution - ofc!
But if I saw it right, these classes are the only that havn't any filter.
The parent-divs are already filterable! :D
so why not follow a consistent path and make all available classes customizable?
Hmm no most <div> throughout the theme doesn't have a filter to allow you to add more classes.