Width and Height
-
Hi, I am using Zurb Foundation as my framework. I would like to get the width and height output in my src as I have seen from other examples. My current output:
<img class="" src="https://xxx/wp-content/uploads/2015/04/MG-8100.jpg" srcset="https://xxx/wp-content/uploads/2015/04/MG-8100-640x427.jpg 640w, https://xxx/wp-content/uploads/2015/04/MG-8100-780x520.jpg 780w, https://xxx/wp-content/uploads/2015/04/MG-8100.jpg 1200w" alt="">
My current code is:
<img src="<?php echo $image['url']; ?>" <?php echo tevkori_get_srcset_string( $the_id, 'large' ); ?> alt="<?php echo $image['alt']; ?>" />
I even tried using the sizes option:
<img src="<?php echo $image['url']; ?>" <?php echo tevkori_get_srcset_string( $the_id, 'large' ); ?> sizes="<?php echo tevkori_get_sizes($the_id, 'large'); ?>" alt="<?php echo $image['alt']; ?>" />
Thank you!!! Love the plugin, great work.
https://www.ads-software.com/plugins/ricg-responsive-images/
- The topic ‘Width and Height’ is closed to new replies.