Using [caption]

#1

Is there any easy way to use the image caption option that is responsive.
I usually add
// Make Captioned images responsive
function my_img_caption_shortcode_width($width, $atts, $content)
{ return 0; }
add_filter(‘img_caption_shortcode_width’, ‘my_img_caption_shortcode_width’, 10, 3);
to the functions.php. This gives me an responsive caption at 100% of its container. I then set the image width to 98% to give margins.
Unfortunately if anyone I swaps to the visual editor and edits an image WordPress removes the [caption]
Is there any plan to add an inbuilt responsive caption?

3 Likes
#2

That sounds like petition material to me :slight_smile:

3 Likes
closed #3

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.