Responsive Adblock Notification Message Bar for Wordpress beta version
How to Use this ?
- Copy the Codes From ab-msg-bar.php File
- Paste it on your Theme's Function.php File (we recommend to create a Child theme for add Custom functionalities or Create a Site Specific Wordpress Plugin)
- Now Paste the below PHP Snippet on your Theme's Header.php File below open Body Tag Check the Below image
- Final Step Paste this onclick event script on your Adsense asynchronous External File
onerror="adBlockFunction();"
- Add this script on Anyone your Ad slot Don't add this on your all Ad slot's Check below image
- That's All Successfull we Install the Responsive Adblocker Notification Bar in our Wordpress website :-)
For Demo Click Here (Enable Adblocker and Check it)
Responsive Adblock Notification Message Bar for Wordpress Santhoshveer(allwebtuts.com)
Credits
- Got this Concept From 9Lessons.info
- Useful Adblock Related Discussion in - stackoverflow
- Adblock Detector method (onerror Event Javascript method) from w3schools.com