简体   繁体   中英

How can I add a close button to pop up window

I am in way over my head, new to S/O and need to get this done as soon as possible. If I am doing this wrong I apologize in advance.

I purchased an extension that was simple enough to install but I need to extend the function just a but. I reached out to the developer to no avail.

Anyway I need to add a close button to the pop ups featured on the home page of this website ( http://www.juanlafontalaw.com ) Click on one of the hotspots (Red) and the pop up will appear. I simply need to add a close button or X that will allow the user to close the pop up without touching the main screen.

The site is Wordpress based. Plug-in: Visual Composer. The Extension: Visual Composer Add-on Image Hotspot with Tooltip (This is the focal point of my question)

I have no idea where to begin and did not expect to be in this position. And I did not think the develop -who does offer support to totally ignore my

Make a button in html, and use jquery click function to make display none in the pop up

$("#btn-id").click(function(){
 $("pop-up").css("display","none");
})

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM