Skip to content

Instantly share code, notes, and snippets.

@timersys
Last active December 13, 2019 14:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timersys/d68690a85aed14a02318 to your computer and use it in GitHub Desktop.
Save timersys/d68690a85aed14a02318 to your computer and use it in GitHub Desktop.
Wordpress popups - Open popup with link
// 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>
@timersys
Copy link
Author

Hi @ellkam, you should use trigger class instead of urls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment