Opening an external url in a pop-up window for a specific page

To do that, you need :
1) The linked page ID (easy to find in the url when editing the page in admin)
2) the external page URL

Copy and paste the code below in your functions.php

 

You can add a timer if you want the pop up to open after a delay :

 

5 thoughts on “Opening an external url in a pop-up window for a specific page”

Comments are closed.