I have checked and it seems to work.
Please can you check that you add anchor without hashtag?
For example use anchor “my-popup” and also check that display rules match also the page you want popup to appear. If you’re using a button, there’s also a select on advanced settings.
I’ve tried on a few different set-ups and it doesn’t work. With, without the hashtag. As a class, as a hyperlink. Nothing seems to work.
Your documentation doesn’t help I’m afraid, it’s very limited.
Can you explain further how the trigger ‘On anchor click’ works please.
I’ve even tried it as a button with, without the hashtag, as a class, as a hyperlink. Nothing works.
If you create a button, simply add an anchor id. The same term you can use on popper. You can also automate thinks if you see under the anchor there’s a dropdown with a list of popups.
I’m busy, but I will add documentation asap.
If ypu have any live links, I can check if there’s any conflict.
Thanks
I’ve set up a temporary site (this will last 7 days) to show you examples of it not working:
https://benchmark.instawp.xyz/
Scroll down the page until you see the title What You Need To Know About Our Company, at the bottom of that column are several links and button, which all show how the ‘On anchor click’ trigger doesn’t work.
I have checked the link and it’s working normally on my test site.
You are using stackable blocks. So the settings are a little bit messed up.
If you give me a temporary access I will show you how to fix it.
However you just go to “Advanced” tab on your paragraph or button block and add “my-popup” on “Advanced” section where it says “Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page.”
I just used stackable blocks for this demo site, I had tried to get it working previously in Generatepress/blocks, Kadence and Astra.
I’ve just realised that you mean the anchor click needs to be in the ‘HTML ANCHOR’ box – on any theme or block builder.
If your documentation just mentioned that, it could have been so much easier – even a simple screenshot of that box would help massively.
Now I know where you enter the anchor click, how would it work if there was more that one anchor link required in a paragraph of text?
Thanks
You could add anchor on <a> tag, but this will require to edit htaml.
So for example you must add something like <a id=”my-popup”>A popup</a> and <a id=”my-second-popup”>another popup</a>.