WordPress.org

Ready to get started?Download WordPress

Forums

Remove/Change image class (4 posts)

  1. Tara Rotten
    Member
    Posted 1 year ago #

    Hey

    How do you remove or replace the image class for images, at the moment a featured image returns:
    <img class="attachment-post-thumbnail wp-post-image" etc

    and images returns:
    <img class="alignnone size-full wp-image-238"

    I would like to replace this with my own class or remove them, any ideas?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Why would you want to remove a class?

  3. Tara Rotten
    Member
    Posted 1 year ago #

    not fond of functions i don't know how to control, also i like clean code. I would prefer to replace it with my own class rather than remove

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You'd need to write your own walker menu class.

Topic Closed

This topic has been closed to new replies.

About this Topic