Where to edit code to make image size responsive
-
Hi,
I read all the forum support threads and readme.txt and “other notes” but still don’t see explicit instructions on how to convert this plugin to make the image size responsive.
What I’ve gathered so far is that I need to add this code somewhere:
image_widget_image_width = "100%"; image_widget_image_height = "auto";
but when I add it to my theme’s customization of widget.php I get a parsing error.
I need more than a smiley face to see how to implement these filters:
(from readme.txt)*image_widget_image_width*
Filters the display width of the image. Hint: override this to use this in responsive designs ??
Accepts additional $args and $instance arguments.*image_widget_image_height*
Filters the display height of the image.
Accepts additional $args and $instance arguments.
`I suppose I can copy over widget-admin.php and hard code these settings into the Custom fields, but I had hoped there was a nicer way to make the plugin image responsive.
Thank you for any guidance; I see that other people are looking for the answer to this question.
- The topic ‘Where to edit code to make image size responsive’ is closed to new replies.