Forum

Forum

Question About CHP ...
 
Notifications
Clear all

[Solved] Question About CHP Ads Block Detector WordPress Plugin


AleksiGT
(@aleksigt)
New Member
Joined: 7 months ago
Posts: 2
Topic starter  

I have just installed the above plugin and it is working perfectly. The main problem i am having is that i dont use adsense ads (google ads ). And the plugin adding the google ads script is slowing heavily down the page. I was hoping if there was a way that I could remove the script used by google without breaking anything. 

Thanks!


Suresh Chand
(@codehelp)
Member Admin
Joined: 1 year ago
Posts: 12
 

Hi  AleksiGT,

To disable the Google Ads Request, Paste the following code in the theme's functions.php file.

/**
 * Filter to disable google ads request
 * 
 * @param array $enable
 */

 add_filter( 'adb/checkby/googleads', function($enable){
        return false;
 });

Please check the https://codehelppro.com/doc/chp-ads-block-detector-pro/how-plugin-works/ for more details.


AleksiGT
(@aleksigt)
New Member
Joined: 7 months ago
Posts: 2
Topic starter  

@codehelp Thanks it worked perfectly 


Share:

Join Our Newsletter Now

Get the latest tutorials, examples and projects updates.