• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Google ads on login page

#1
Can someone tell me how to disable google ads only on the login in page? Google feels the need to disable my account since 2004 as a result...
 
#3
Here's my main problem... the header ad is showing up on the login page and Google seems to not like it.... I am not a code whiz ..do I need a conditional on the header template or the login template? Thanks
 

Siropu

Well-known member
#4
Use this conditional:

Code:
<xen:if is="!in_array({$contentTemplate}, array('login', 'login_password_confirm', 'error', 'error_with_login', 'register_form'))">
you ad code here
</xen:if>