Responsive images and Open Graphite
-
Hi,
I am developing a new wp theme based on Bootstrap4. I have function that put img-fluid to on every image tag. It worked fine until my client hasn’t install OG. After using OG ‘image-fluid’ appeares to be erased. When I unistall OG everything works fine again. For now, the only solution is to put manually ‘image-fluid’ to back code of each new post.
Where is the problem with OG, and how to fix it?
Function code is:function wpresponse_add_image_class ($class){
$class .= ‘ img-fluid’;
return $class;
}
add_filter(‘get_image_tag_class’,’wpresponse_add_image_class’);Thanks
Best regards
SKThe page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Responsive images and Open Graphite’ is closed to new replies.