/ Published in: PHP
Adds a class to the standard classes in Images in Posts/Pages
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function bb_add_image_class($class){ $class .= ' scale-with-grid'; return $class; } add_filter('get_image_tag_class','bb_add_image_class');