Category: Code Snippet

Adding Custom Class When Upload or Insert Image in WordPress

If you used a bootstrap to build a wordpress template, you might encounter this issue. How to automatically insert custom class when uploading an image, this also applieswhen inserting images, e.g. images from other web (via URL) In the bootstrap, so that the image looks responsive, it needs a class img–responsive.Read the explanation here. This time …