• Is there any way to stop WP adding it’s CSS class info to an uploaded image or to make it add a custom class name of your own? (without editing by hand)

    So rather than :
    class="alignnone size-medium wp-image-16"

    it’s just :
    'class="custom"

Viewing 4 replies - 1 through 4 (of 4 total)
  • you can create classes for the WP-assigned ones in your stylesheet and style them any way you want

    Thread Starter markoburns

    (@markoburns)

    You mean put whatever I need into ‘alignnone’ for example?

    what is ‘wp-image-16’ (or whatever number) when that appears in your code?
    It doesn’t seem to appear in the main CSS file.

    I also would like to know if this is possible, but with the links that are placed around images. I’m having trouble styling linked images inside my posts, because you can’t make the CSS specific enough to use different text and image link styles. I use paddings around my links, wich seems to make things a lot harder as well.

    I’d also like to know if this is possible (stop WordPress from auto-inserting wp-image classes).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom CSS class on image’ is closed to new replies.