Adrenalinecombr
Member
Is there a way to not show Google Adsense advertisements on some specific Xenforo pages?
Some pages with more sensitive information Google asks to remove the advertising, under penalty.
I tried to do this using Xenforo's template syntax conditional statements but I couldn't.
Example:
But when I look at source code using browser code inspector (F12) it shows this link anywhay.
Some pages with more sensitive information Google asks to remove the advertising, under penalty.
I tried to do this using Xenforo's template syntax conditional statements but I couldn't.
Example:
Code:
<xf:if is="!in_array($xf.fullUri,[
'adrenaline.com.br/forum/threads/sleeping-dogs-topico-oficial.412275/page-26',
'https://adrenaline.com.br/forum/login/'
])">
<!-- Adsense -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</xf:if>
But when I look at source code using browser code inspector (F12) it shows this link anywhay.