Image preview of mobile related articles

Posted in: Newspaper
Post count: 268

HI,

I deleted some image formats that I don’t need. in related articles of the mobile theme however there is one strange thing. If they usually appear as follows

alt tag

and depending on the format of the device it is used 100×70 or 218×150
some articles contain some formats that I deleted (300×214, 1068×762, 589×420 …) as follow

alt tag

in particular the 300x format that I have deleted appear before what still exists (218×150) and then surfing with the browser of mobile phone results in a missing image.

Question is: how can I delete in the code the formats that I do not need and that are only present here?

in td_mobile_mob_1 I have already put only the format I need

<div class=”<?php echo $this->get_module_classes();?>”>
<?php echo $this->get_image(‘td_100x70’);?>

Thanks!

  • This topic was modified 8 years by Bintmusic.
  • This topic was modified 8 years by Bintmusic.
  • This topic was modified 8 years by Bintmusic.
  • This topic was modified 8 years by Bintmusic.
  • This topic was modified 8 years by Bintmusic.
  • This topic was modified 8 years by Bintmusic.
Post count: 268

…The images missing in the above message are

img width=”100″ height=”70″ class=”entry-thumb” src=”https://www.site.com/wp-content/uploads/2015/01/image-100×70.jpg&#8221; srcset=”https://www.site.com/wp-content/uploads/2015/01/image-100×70.jpg 100w, https://www.site.com/wp-content/uploads/2015/01/image-218×150.jpg 218w” sizes=”(max-width: 100px) 100vw, 100px” alt=”alt tag” title=”image title”

img width=”100″ height=”70″ class=”entry-thumb” src=”https://www.site.com/wp-content/uploads/2015/09/image-100×70.jpg&#8221; srcset=”https://www.site.com/wp-content/uploads/2015/09/image-100×70.jpg 100w, https://www.site.com/wp-content/uploads/2015/09/image-300×214.jpg 300w, https://www.site.com/wp-content/uploads/2015/09/image-1024×730.jpg 1024w, https://www.site.com/wp-content/uploads/2015/09/image-218×150.jpg 218w, https://www.site.com/wp-content/uploads/2015/09/image-696×496.jpg 696w, https://www.site.com/wp-content/uploads/2015/09/image-1068×762.jpg 1068w, https://www.site.com/wp-content/uploads/2015/09/image-589×420.jpg 589w, https://www.site.com/wp-content/uploads/2015/09/image.jpg 1280w” sizes=”(max-width: 100px) 100vw, 100px” alt=”alt tag” title=”image title”

  • This reply was modified 8 years by Bintmusic.
  • This reply was modified 8 years by Bintmusic.
  • This reply was modified 8 years by Bintmusic.
Post count: 22421

Hello,

We do not recommend manually deleting images from the theme. It will result in such errors as you present above. If you want to disable a thumb in order for the theme not to create thumbs for all images in that size, you should just disable it from the theme panel: https://www.screencast.com/t/GFvzuL4aM

Thanks.

Post count: 268

Ho Bogdan,

Obviously what I did but there are thumbnails of images that are not seen with disabled format. how can i remove form visualisation? are they in postmeta or whatelse? Hanks

Post count: 268

…how is possible to modify srcset to remove dimension that has been deleted?

thanks

Post count: 22421

Hello,

Please note that our theme does not create any thumb that is not listed in the theme panel. WordPress also created thumbs: https://www.screencast.com/t/UBYXvGLFrNz and so do some plugins. All of our theme plugins are listed in the theme panel and can be deactivated. Our theme does not add srcset to images. There is no simple solution I can provide for thumbs that are not theme related or code that is not added by the theme.

Thank you for your understanding and happy holidays!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.