XF 2.1 Which Conditional Statement to Hide Certain Content On Custom Page?

Chris Radford

Active member
Hi all,

We have the following setup via Setup - Advertising;
Container breadcrumb (top): Below
Inside the page container, directly below the top breadcrumb on every page.
Site Sponsors


Code:
<div align="left"><a href="https://footballjunkie.co.uk/"><img src="https://i.ibb.co/THcFbJg/bestbettingsites.png" title="Football Junkie" /></a></div>

<div class="p-adList">
    <a class="p-adList--trigger" data-xf-click="toggle" data-target=".p-adList" role="button">
        <span class="p-nav-menuText button">Show Sponsors</span>
    </a>
    <ul>
        <li><a href="https://www.maxfreebets.co.uk">Max Free Bets</a></li>
        <li><a href="https://bettingsites.ltd.uk/">New Betting Sites</a></li>
        <li><a href="http://www.bookiesfreebets.co.uk/">Bookies Free Bets</a></li>
        <li><a href="https://www.freebets.uk.com">Free Bets UK</a></li>
        <li><a href="http://www.bettingsitesoffers.com/">Betting Sites Offers</a></li>
          <li><a href="https://www.thecasinodb.com/new-casino-sites">TheCasinoDB New Casinos UK List</a></li>
        <li><a href="https://freespinsnodeposit.bet/">No Deposit Free Spins</a></li>
        <xf:if is="$__globals.template == 'forum_list'"><li><a href="https://www.grandnational.fans/">Grand National 2020</a></li></xf:if>
        <li><a href="https://www.online-betting.org/">online-betting.org</a></li>
        <li><a href="https://thefootytipster.com/?utm_source=onefootballforums&utm_medium=paid&utm_campaign=header">Expert Betting Tips</a></li>
        <li><a href="http://bettingonline.co.uk">Betting Online UK</a></li>
         <xf:if is="$__globals.template == 'forum_list'"><li><a href="https://www.norgescasino.com/"><b>Norges Casino</b></a></li></xf:if>
         <li><a href="https://freebetshub.com/en/">Free Bets UK</a></li>  
        <li><a href="https://www.bettingsider24.com/">bettingsider24.com</a></li>
        <li><a href="https://betting24.dk">betting24.dk</a></li>
        <li><a href="https://www.freebetsbet.co.uk">Free Bets & Betting Offers</a></li>
        <li><a href="https://www.bettingworx.com/">BettingWorx</a></li>
        <li><a href="http://www.thefootballforum.net/index.php?ads-manager/">Purchase Guest Posts & Text Links</a></li>
    </ul>
   
       
</div>

We want to hide the above content on the following two custom pages, setup via nodes.

Code:
http://www.thefootballforum.net/index.php?pages/5-ways-fantasy-football-is-guide-for-your-health/
http://www.thefootballforum.net/index.php?pages/how-being-a-sports-fan-is-good-for-your-health/

My efforts with condition statements have yet to yield results.

Can somebody guide me here?
 
Top