XF 2.2 Javascript inside an IF template conditional renders anyway

BIG LLC

Active member
Anyone had this problem? I have Javascript for adsense inside a conditional that SHOULD be false on a particular forum.

It renders in the page anyway.

Is Javascript special and ignores XF conditionals?

<xf:if is="!in_array({$__globals.forum.node_id}, [comma delimited set of forum IDs])"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4430640331206028" crossorigin="anonymous"></script> </xf:if>
 
Back
Top Bottom