• Resolved websavers

    (@websavers)


    Hey there,

    Encountering this weird issue where the HTML generated by adrotate is missing the srcset value. It looks like this:

    <picture>
    			<source media="(min-width: 768px)" data-srcset="
    			/wp-content/banners/clearwater-leaderboard-1200x300.gif 1200w,
    			/wp-content/banners/clearwater-leaderboard-2400x600.gif 2400w">
    		
    			<img class="img-fluid lazyload blur-up" loading="lazy" alt="Clearwater" data-srcset="
    				/wp-content/banners/clearwater-400x400.gif 400w,
    				/wp-content/banners/clearwater-800x800.gif 800w" width="2400" height="600">
    		</picture>

    Images don’t load, only the alt text shows. If I manually inspect and rename data-srcset to srcset, the images show up!

    I’m guessing this is supposed to be done automatically via javascript, but it’s not clear to me what to do to fix that when there’s no errors showing in the console log.

    Thoughts?

Viewing 1 replies (of 1 total)
  • Thread Starter websavers

    (@websavers)

    Scratch that, I can see this data-srcset is in the ad code itself. Not adrotate’s fault.

Viewing 1 replies (of 1 total)
  • The topic ‘Ad images not displaying due to srcset missing’ is closed to new replies.