Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
AmericanRev2 Posted June 7, 2017 Posted June 7, 2017 <xen:if is="!in_array({$contentTemplate}, array('message_page', 'error', 'search_form', 'search_form_post', 'search_form_profile_post', 'search_results', 'register_form', 'register_facebook', 'register_twitter', 'register_google', 'login', 'login_two_step', 'error_with_login', 'contact'))"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- 2017MM --> <ins class="adsbygoogle" style="display:block" data-ad-client="xxxxxxxxxxx" data-ad-slot="4227052263" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <br /> </xen:if> above is similar code, what do i wrap my ad code in on IPS to prevent them from showing on illegal pages?
AmericanRev2 Posted June 7, 2017 Author Posted June 7, 2017 anyone know the disallow conditions for this?
AlexWebsites Posted June 7, 2017 Posted June 7, 2017 You could accomplish this with custom css if you assign your adsense a class and then maybe a display:none; Target the specific pages by looking at the source code, follow this guide:
Day_ Posted June 7, 2017 Posted June 7, 2017 Don't use these two below, the others are fine to use "Just below the page header" and "Just below the page footer" Now use "define your own locations" and add {advertisement="KEY"} replacing the KEY with anything you like, manually into the templates at the very top and bottom. For the home page if you what forums > front > index > index Within boards forums > front > forums > forumDisplay Within topics forums > front > topics > topic Also make sure you turn off Ajax Pagination from within the theme option as the ads won't load correctly
Recommended Posts
Archived
This topic is now archived and is closed to further replies.