Using Elementor
In this example, we are using Elementor Pro; this can also be done using other plugins that allow you to modify the WordPress code.
- On your WordPress dashboard, navigate to Elementor -> Custom Code.
- Hit the “Add New Button.”
- Give it a name and copy the code in the next section
- Hit the Blue “Publish” button
- Set the conditions; on my site, it is set to the Entire Site.
Bam, now people will get a popup when they click external links.
Code