Block Adsense on specific page

You can use this function:

<?php if(is_page('your-page-slug')): ?>
    //do nothing on selected pages
<?php else: ?>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" />
    <script>
        
    </script>
<?php endif; ?>

If you want to disable this on more than one page, just add them like this:

<?php if(is_page('your-page-slug1') || is_page('your-page-slug2')): ?>

WordPress Developer Resources are very useful (more than codex), so i recommend checking them out first if you don’t know how to do something

tech