XF 1.2 Hide Template Through CSS?

I'm already trying to hide it with a template conditional. This is what I have right now.

<xen:if is="{$visitor.user_id}">

<xen:if is="{$contentTemplate} == 'forum_list'"><xen:else />

<xen:include template="boardlist2" /> </xen:if>

</xen:if>
 
Just wrap the contents of the ad_above_content template in the conditional statement.

<xen:if is="{$contentTemplate} != 'template_name'">
ad_above_content here
</xen:if>
 
Top Bottom