Setup Issues Img Tags not replaced
-
I cannot seem to replace Img tags with srcset, when I inspect my image element this is what is returned.
<div class="portfolio__item js-placeholder js-portfolio-item proof-photo no-transition js-loaded" data-srcsmall="https://lifelight-wjlaaqufspv7tai.netdna-ssl.com/wp-content/uploads/2017/07/Image-2-150x94.jpg?x19945" data-srclarge="https://lifelight-wjlaaqufspv7tai.netdna-ssl.com/wp-content/uploads/2017/07/Image-2-1280x800.jpg?x19945" data-srcfull="https://lifelight-wjlaaqufspv7tai.netdna-ssl.com/wp-content/uploads/2017/07/Image-2.jpg?x19945" id="1813" data-attachment_id="1813" data-alt="" data-caption="" data-description="" data-exif="[]" data-width="2800" data-height="1750" style="width: 304px;"><img src="https://lifelight-wjlaaqufspv7tai.netdna-ssl.com/wp-content/uploads/2017/07/Image-2-150x94.jpg?x19945" style="opacity: 1;"><div class="spinner"> <span class="spinner__side side--left"><span class="spinner__fill"></span></span> <span class="spinner__side side--right"><span class="spinner__fill"></span></span></div><div class="proof__overlay"> <button class="proof-btn proof-btn--thumbs js-thumbs"></button> <button class="proof-btn proof-btn--zoom js-zoom"></button> <button data-photoid="1813" class="proof-btn proof-btn--plus js-plus select-action"></button> <button data-photoid="1813" class="proof-btn proof-btn--minus js-plus select-action"></button></div><div class="proof__selected"></div><noscript> <img src="https://lifelight-wjlaaqufspv7tai.netdna-ssl.com/wp-content/uploads/2017/07/Image-2-150x94.jpg?x19945" alt="" width="150" height="94"> </noscript></div>
The Img tag is as follows and is from my CDN
<img src=”https://lifelight-wjlaaqufspv7tai.netdna-ssl.com/wp-
content/uploads/2017/07/Image-2-150×94.jpg?x19945″ style=”opacity: 1;”>I suspect it is not working because my theme is using filters that I would have to bypass using your filter functions to replace src= with srcset
Problem is I do not even know where to start.
- The topic ‘Setup Issues Img Tags not replaced’ is closed to new replies.