• Hi,
    Yes, I’m quarantined too.
    In Supermag instead of an image and external link on top right, I have placed an image related to the blog content without any link.
    It works just fine except that any browser with adblockers disables the image.
    The reason for this behavior seems to be the code in header.php:

    286 <a href="<?php echo esc_url( $supermag_header_main_banner_ads_link ); ?>" target="_blank" alt="xxxxxxx">
    287 <img src="<?php echo esc_url( $supermag_customizer_all_values['supermag-header-main-banner-ads'] )?>">
    288 </a> 

    I don’t wish to modify the code cause as soon as an update is installed the problem will resurface.
    Any idea on how to resolve this problem?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter stopthepress

    (@stopthepress)

    This is the page source code of the rendered image:

    <div class="header-ainfo float-right"> 
    <a href="" target="_blank" alt="xxxxxxx"> 
    <img src="https://www.example.com/blog/wp-content/uploads/2019/10/image.png">
    </a> 
    </div>
    Theme Author Acme Themes

    (@acmethemes)

    Hello @stopthepress,
    Previously we fix the issue by changing the name of the class from ads. It seems like adblockers are much smarter now.
    Adblock will block images

    1. with common ad dimensions in the file name, e.g. ‘myimage_720_90.png’ or ‘myimage_300x250.jpg’.
    2. with common ad keywords in their path (and file name), e.g. banners, adv, ad.
    3. maybe other filters that analyse CSS or HTML

    Check your image file names and rename some to see how it goes, try something generic like ‘topwide.png or similar to avoid the filters.

    Reference

    Best Regards!

    Thread Starter stopthepress

    (@stopthepress)

    Thanks,
    Per your suggestions will try some variations and post results.
    Regards

    Thread Starter stopthepress

    (@stopthepress)

    Solved.
    The original name included xxxx-728×90.png. Uploaded again with a more generic name and now is rendered okay with/without adblocker.
    Thanks a lot for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image in top-right dissapears due to adblockers’ is closed to new replies.