Image Sizes, WordPress
-
Hi,
I am in the process of customising my WP theme, but I am having an issue with the image sizes (widths to be specific).
I have made the theme wider, but even when I choose the largest image, there is HTML for the image that forces it to be a maximum width of 970px. I have added an image that is 1170, but still, this is the HTML that is generated by the get_content().
I am at a loss where all this HTML comes from? A direct copy from the HTML on the page is
<img data-attachment-id="813" data-permalink="https://www.stevenparkes.co.uk/2017/09/29/first-film-lomography-bellair/20170928-420/" data-orig-file="https://i0.wp.com/www.stevenparkes.co.uk/wp-content/uploads/2017/09/20170928-420-e1506970579938.jpg?fit=1170%2C591&ssl=1" data-orig-size="1170,591" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"Steven J Parkes","camera":"Bellair","caption":"","created_timestamp":"1506428688","copyright":"Steven J Parkes","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title="Courtyard" data-image-description="<p>Courtyard</p> " data-medium-file="https://i0.wp.com/www.stevenparkes.co.uk/wp-content/uploads/2017/09/20170928-420-e1506970579938.jpg?fit=300%2C152&ssl=1" data-large-file="https://i0.wp.com/www.stevenparkes.co.uk/wp-content/uploads/2017/09/20170928-420-e1506970579938.jpg?fit=970%2C491&ssl=1" class="wp-image-813 size-full" src="https://i0.wp.com/www.stevenparkes.co.uk/wp-content/uploads/2017/09/20170928-420-e1506970579938.jpg?resize=970%2C490&ssl=1" alt="Courtyard" width="970" height="490">If I view the section of code in the developer part of chrome, and I remove all references to 970, then the image does re-size to 1170, but obviously on re-load it’s back to 970. Where is all this HTML coming from?
The page I need help with: [log in to see the link]
The topic ‘Image Sizes, WordPress’ is closed to new replies.