Image specifications in template
-
Hi,
Currently I am using this code for showing images on template. Am I supposed to use amp-img in the template?
<amp-img data-hero alt="<?php echo get_the_title(); echo " "; the_field('copyrightyear'); ?>" width="320" height="180" layout="fixed" src="<?php echo $imgwebp; ?>"> <amp-img alt="<?php echo get_the_title(); echo " "; the_field('copyrightyear'); ?>" fallback width="320" height="180" layout="fixed" src="<?php echo $img; ?>"></amp-img> </amp-img>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Image specifications in template’ is closed to new replies.