Hi
I am not normally stumped; but this one driving me nuts.
Issue: I am making my inline images in posts 696×522 to comply with some of Google’s snippet and AMP shenanigans, but I need to make a function to set the image to the ‘large’ thumb size for site as 600×450 via some kind of rewrite; *or* append a
width:100% height:auto to the specific custom RSS feed. Supposedly one can setup a rewrite for a specific post ID to look for the img tag and then append or rewrite the code, such as remove the size or rewrite the 696×522 to 600×450 or whatever.
Using custom page method to make RSS feed with name ‘xmlcleanfcnetwork’ and page ID ‘26124’
current image inline with post (in the post meta)
img src="https://www.xxxxxx.com/wire/images/17-0908-easeus-mobisaver11-696x522.jpg" alt="EASEUS Mobisaver 11" width="696" height="522" class="alignnone size-full wp-image-28747" srcset="https://www.xxxxx.com/wire/images/17-0908-easeus-mobisaver11-696x522.jpg 696w, https://www.xxxxx.com/wire/images/17-0908-easeus-mobisaver11-696x522-300x225.jpg 300w, https://www.xxxxxx.com/wire/images/17-0908-easeus-mobisaver11-696x522-600x450.jpg 600w" sizes="(max-width: 696px) 100vw, 696px"
trying to rewrite the
src="https://www.SITENAME.com/wire/images/17-0908-easeus-mobisaver11-696x522.jpg"
to print the
src=" ... /17-0908-easeus-mobisaver11-696x522-600x450.jpg"
(( ARGH ! ))
-
This topic was modified 8 years by
simchris.
something similar to what’s going on here …
https://wordpress.stackexchange.com/questions/220739/rewrite-inline-image-markup
Willing to pay somebody who knows how to grok this one better than me.
TIA.
