Last active
December 13, 2019 14:56
-
-
Save timersys/d68690a85aed14a02318 to your computer and use it in GitHub Desktop.
Wordpress popups - Open popup with link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To open popup with ID 3 on same page (preferred) | |
<a href="" class="spu-open-3" title="Click here">Click here</a> | |
// Another way | |
<a href="#spu-3" title="Click here">Click here</a> | |
// To go to a new page and open a popup there | |
<a href="http://mydomain.com/new-page/#spu-3" title="Click here">Click here</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @ellkam, you should use trigger class instead of urls.