[Support request] Feature request: .entry-content class filter

Home Forums Support Feature request: .entry-content class filter

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1148078
    Olaf

    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 😛

    .inside-article, .entry-header filter would be cool, too.

    suggestion: ‘generate_entry_content_class’ 🙂

    Or does anything speak against it?

    THX!

    #1148455
    Leo
    Staff
    Customer Support

    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?

    #1149178
    Olaf

    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! 😀

    so why not follow a consistent path and make all available classes customizable?

    #1149533
    Leo
    Staff
    Customer Support

    Hmm no most <div> throughout the theme doesn’t have a filter to allow you to add more classes.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.