Skip to main content
8 events
when toggle format what by license comment
Apr 13, 2017 at 12:37 history edited CommunityBot
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Mar 27, 2017 at 5:44 comment added karimhossenbux Note that the class will be added to new images only. It will not be added to old images, because the HTML is already generated in the content editor.
Jul 22, 2014 at 19:40 vote accept Eric
Jul 22, 2014 at 18:14 comment added Eric it's however not working when I insert a link via the 'link' button (insert from url) in the post editor. Also, how do I remove the default wordpress class 'wp-image-59' ?
Jul 22, 2014 at 18:13 comment added Eric Yes sorry it's working, I was in the wrong theme:$ Thank you
Jul 22, 2014 at 17:39 comment added Marcos Rodrigues When you add an image to the post editor from the add media button it's not coming with the 'my-custom-class' css class? Before I send it to you, I've made testes here, and it was working Or you want the class when you have image link?
Jul 22, 2014 at 17:17 comment added Eric thanks, I've tried your function, but no class is added to the img tag when I add an image link in the post editor.
Jul 22, 2014 at 17:09 history answered Marcos Rodrigues CC BY-SA 3.0