Support

Account

Home Forums General Issues Add CSS class to images Reply To: Add CSS class to images

  • 
    function image_tag_class($class, $id, $align, $size) {
    	if (get_field( 'img_fullscreen', $id)) {
    		$class .= ' full';
    	}  
        return $class;
    }
    add_filter('get_image_tag_class', 'image_tag_class', 10, 4 );