R
R
redhook2014-12-07 03:13:09
Ad blocking
redhook, 2014-12-07 03:13:09

How to make a visitor with adblock see a picture on the site in place of the ad block?

Hello, tell me please, who knows how to make a visitor with adblock see a picture in the place of emptiness where the advertisement was on the site?
If you have adblock, here is an example . Picture on the right side of the ad.
Site on Wordpress.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nikitasius, 2014-12-10
@nikitasius

1) Create an advertising div in another div
2) In the JS script, which is located at the bottom of the main page code (and not pulled by a link), check the size of the div with a picture, for example ad.png, which is in the same div e and which stretches from your server.
3) If the size does not match, use JQuery to overwrite the content of the parent div to the one you need with the picture.
the logo div should be checked , for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question