WordPress – Close an Elementor Popup with a Custom Link

When creating a popup in Elementor it can be given a button using the button widget for closing the popup. JavaScript can also be utilized to close it.