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

XF 1.2 Hide Template Through CSS?


Well-known member
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>



XenForo moderator
Staff member
Just wrap the contents of the ad_above_content template in the conditional statement.

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