@billybidley – As I mentioned before there are caveats, but both our docs/tools & our support team would have been happy to help.
We even have a tool to help you get the correct selector built into the admin toolbar on the frontend: https://docs.wppopupmaker.com/article/147-getting-css-selectors
The problem you faced isn’t something we can account for easily, its often unique per site, per theme, and every site is different, every “button” or “link” users want to target is created a different way thus the selectors need to be specialized to each scenario, no way around it.
What you missed was that your theme, page builder or gutenberg button/link wasn’t just a link.
You likely added a class to that button like my-custom-button
then set your popup trigger to prevent default on the selector .my-custom-button
, but your page html was most likely:
<div class="my-custom-button">
<a href="someurl.com">Link Text</a>
</div>
In the above case you would in fact not be preventing the default of the link, but rather the <div>
, but the<div>
has no click event to prevent. So even if we do what you set it to do, nothing would change. Only the <a href>
has a preventable event.
In these cases, and if you followed the guide above, you would hopefully end up with a selector of .my-custom-button a
, resulting in it preventing the link itself from doing default action.
Simple fix, but could definitely be frustrating if you didn’t ask for help or read the docs & use the tools.