Bel
(@belimperial)
Hi @adriana97
Thanks for writing in, and we’re sorry you have trouble for your click function.
We’ll ask our development team to have a look at the dynamic href (URL) and get back to you.
Could you also share to us the function you are using to help our developers? Please share it to us by opening a support ticket to our website for security. Here’s how to:
1. Go to https://wppopupmaker.com/support/#submit-a-support-ticket
2. Click Other Support
3. Fill in the form
4. Click SUBMIT
Here’s a screen capture for your reference: https://share.wppopupmaker.com/geudGzB4
Thank you, and we look forward to your response.
Hey @adriana97,
We’d love to help.
Can you give us more details? What do you exactly mean by dynamic href in a button? Do you want to pass a link into a popup and insert that into an a tag’s href attribute? Where will that link come from? I.e., how will you pass the dynamic href?
Please follow this guide to save time and from going back and forth.
https://wordpress.org/support/topic/construct-your-support-thread-like-this-to-get-the-fastest-support/
Cheers!
Hello,
I want to pass a link to button inside popup. I thought to do that my data attribute. When clicking on button(which opens popup) transfer that buttons data attribute with is a link to button inside popup.
Button opening popup: https://prnt.sc/EGkbEeOEWaBk
Button inside the popup with dynamic link https://prnt.sc/BvHIV7IDPU99
Hey @adriana97,
Thanks for clarifying and for sharing those screen captures. When we visited your site, we didn’t get any popups to launch. And, we also saw many JavaScript errors in the console.
You’ll need to fix all that and make sure your popup click triggers are in place and working.
Once that’s done, you can use custom code to pass in a URL to your popup and insert that URL as a button link inside your popup.
Here’s a code example you can use and tweak for your needs.
https://gist.github.com/marklchaves/49fcb165484053efa3916d97d911cd47
You need to be comfortable with PHP, JavaScript, and jQuery or work someone who is.
Here’s a live demo on a test site.
https://streetphotography.blog/dynamic-link-popup/
You should see a button that passes Popup Maker’s homepage URL to a popup and inserts the URL into the button’s link inside the popup.
We hope that helps.
Let us know if you need anything else.
Have a great day π
Bel
(@belimperial)
Hi @adriana97
Awesome! We’re happy to help.
Hey, if you have a moment, could you rate and review the plugin?
We’d appreciate sharing your experience with everyone.
Have a great day π