1. 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?

Discussion in 'XenForo Questions and Support' started by DRE, Nov 1, 2013.

  1. DRE

    DRE Well-Known Member

    I need to hide my ad_above_content template from my XenMedio main page.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Use a template conditional.
  3. DRE

    DRE 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>

  4. Brogan

    Brogan 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

Share This Page