Skip Navigation

[Resolved] Post Form is not showing when browser is using an AdBlocker

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that user's with Adblockers don't see the CRED forms on this user's site

Solution:

The problem here was because of the names used in the class attribute. Works like "Ad" and "Adform" and "Ads" are natively blocked by Adblockers so you should avoid using names like this for your html classes.

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by orlaF 6 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#872358
Screen Shot 2018-05-10 at 13.14.11.png

I am trying to: Show a post form

Link to a page where the issue can be seen: hidden link

My client uses Adblockers and he cannot see the form when the adblocker is on. I know I could put a notice to switch off your adblocker but is there some way to display this form even when adblockers are on?

#872874

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Orla,

Thank you for contacting our support forum.

I'm not sure how is that even possible.

Would you mind allowing me to have access to the site so that I can see the form ? Also please let me know which ad blocker is your client using so that I can check this too.

Thanks,
Shane

#873641

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Orla,

I'm not able to replicate this on a fresh install as you can see from our demo here : hidden link

That even with the adblocker the form still shows.

I would suggest that you try changing the classname "advert-container" as this might be what is triggering the adblocker.

Thanks,
Shane

#875457

Hi Shane - that was the issue thank you - I am still trying to figure out how to get the single.php page to show up for the custom post type Ad - the entire page is blank!

Another issue I am having is conditional logic - the logic I am trying to achieve is:
if ad category is 'accessories' DO THIS
I've tried lots of different options from the conditional logic function but nothing seems to do it - here is my latest one:
{!{wpv-conditional if="( '{!{wpv-post-taxonomy}!}' eq 'accessories' )"}!}DO THIS{!{/wpv-conditional}!}

I would love your help on this also!

Kind Regards,
Orla

#877215

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Orla,

Awesome happy to see that its resolved.

As per our support policy we try to keep issues separate so that it's easier for customers with similar issues to find the relevant results.

Could you open a new ticket for this issue and we can handle it there?

Thanks,
Shane

#895716

Issue was resolved by changing the post-type name from 'ad' to 'listing' which was a big overhaul but also a big lesson for the future to stay away from the word 'ad' or 'advert' for anything :-).

Thank you for your help.