XF 2.2 How to block ads for a page node?

Bonsai Coder

Active member
Licensed customer
This should be simple, but I am struggling to get it to work.

I have created a page node on my site. It has an ID "partners.85" when I mouse over it in the nodes list.

I want to block Adsense ads from showing up in this page node. So I go to my advertising section in the control panel and at the bottom there is the section titled "Prevent ads showing in these templates". I enter what I believe to be the template description "_page_node.85". However ads still show up in the page node. What am I doing wrong?

You can see the page in question here:
https://www.bonsainut.com/pages/partners/

The ads in question are placed within the page container, above and below the content.
 
Last edited:
page_view is the template so you can try it.
We are getting closer. Blocking page_view blocks BOTH pages on my site with ads. Unfortunately I have a splash page / front page where I want ads to show, and this interior page where I don't want ads to show. There has to be a way to specifically call out the one page(?)
 
Last edited:
The advertising system only goes down to the page level.

Use a conditional statement in the ad html template prevent it showing in a specific node.
I am not a great coder. At best I can edit other peoples' code to customize it for my needs. Any help with that line of code?
 
Back
Top Bottom