Multiple Images for Non-Featured Images

Posted in: Newspaper
Post count: 1

Hi Tagdiv Team,

When i am adding featured image to post it is creating multiple images based on the sizes mentioned in theme panel, But the images within the content are also creating multiple images.

Can i restrict that only featured images can only be recreated based on the Theme specified sizes and not the images with in the content.

Thanks

Post count: 9544

WordPress creates multiple sizes for anything you upload to the media manager – unrelated to any theme. You can set those sites in the WP theme panel — see WordPress.org for more info on how the base functionality of WordPress handles media uploads for more info.

You *can* hack WP via functions to disable that. I think our solution the past 10 years was to set the WP media default sizes in WP settings to same size as those we upload and to the common ones used in theme to not end up with duplicates. Meaning if all the images we upload are 600×450, then our default medium size was 600×450, and the small size was one of the module sizes for sidebar.

WordPress creates multiple images for mobile — for the “srcset” function, and you can see this if you look at your page source ‘view source’ in your browser, for a post.

If you want zero thumbs/srcset images for images placed further down in posts/pages, you can simply upload those files via FTP to an image folder, and place the actual URL into the post using normal html.

<img src="https://mysite/images/my-photo-700x335.jpg" alt="" width="700" height="335" />

Welcome to WordPress! 🙂

( I don’t work here. )

  • This reply was modified 9 years by simchris.
  • This reply was modified 9 years by simchris.
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.