Image srcset and alt
-
Hi, pulling through an image using the standard
<code> <img src="<?php block_field( 'pets-photo' ); ?>" /> </code>
generates the full size URL. Is there a simple way to adapt this to include an Srcset or similar for different device sizes, and pull through the image’s alt text, or do we have to work with block_value() instead?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Image srcset and alt’ is closed to new replies.