XF 2.2 How to hide "blank space" from ad removal for paid subscribers


Hey all!

One of the perks I have for my "supporting" members (paid subscribers) is not to see the ads. While this works, they are left with this blank space between nodes, on the leaderboard, etc. Is there a way to remove/collapse that space? Some kind of add-on that will make it look like a forum with no ads?

Note that this has nothing to do with slots not being filled ref this post.



XenForo moderator
Staff member
How are you preventing ads being shown to specific user groups?

What does the ad code you are using look like?

There shouldn't be any blank spaces with the correct code.


Well-known member
Wrap your ads in a conditional like this:

<xf:if is="{{!$xf.visitor.isMemberOf(x)}}">
                {ad code here}
where x is the id for your upgrade group
Last edited: