Disable Adsense Gadgets, On Static Pages

One occupation amongst AdSense, that approximately weblog owners convey reported, is that AdSense ads are non permitted on pages amongst really piddling AdSense relevant content.

Unfortunately for approximately weblog owners, the responsibleness for preventing this is left to the weblog owner.

Blogs amongst static pages, in addition to AdSense gadgets inwards the sidebar, are a occupation here. Static pages amongst piddling weblog relevant content - such equally label indexes, expanded possessor profiles, particular gadgets similar Followers displays - motility problems amongst the AdSense advertising classifier - in addition to tin motility blogs to lose ads.

As an AdSense publisher, the weblog possessor is expected to ensure that ads are non displayed on unsuitable weblog pages.

Fortunately, it's non hard to block AdSense ads from static pages. Just add together a CSS dominion amongst a "static page" conditional, to block display of each AdSense gadget.

<b:if cond='data:blog.pageType == "static_page"'>

If yous desire to block gadget "AdSense1" from displaying on all static pages, that's a uncomplicated CSS rule, added using "Add CSS".

Note that I wrote this to selectively block AdSense gadgets from displaying - but yous tin role it amongst whatever gadget, that yous involve to block. AdSense is only 1 gadget that needs to live on selectively displayed.


<b:if cond='data:blog.pageType == "static_page"'>
<style>
#AdSense1 {display: none !important;}
</style>
</b:if>


As always, live on aware that the blank business inwards a higher house in addition to below the code, equally displayed here, is non intended to live on decorative. Any fourth dimension yous add together CSS rules, the blank business is required, to split upwardly each CSS dominion - in addition to brand each dominion operational.

If the weblog publishes actual weblog content on approximately static pages, conditionals volition live on a chip to a greater extent than complicated. This is 1 to a greater extent than argue why static pages are not typically used for weblog content.



Owners of #Blogger blogs amongst AdSense ads, that role static pages without AdSense relevant content, involve to block ads from displaying on such pages. Failure to display ads selectively tin motility problems amongst ads on the blog.

Fortunately, a uncomplicated CSS dominion tin live on used, to block ads from static pages.

https://productforums.google.com/d/topic/blogger/7ANVOrQuvIo/discussion

https://productforums.google.com/d/topic/blogger/-p6mdLF2B08/discussion



Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel