I followed this tutorial to create a modal How to build a pop-up modal in Webflow | Webflow Blog but the close button isn’t working when I preview in the interactions panel it shows correctly but when I preview the entire site or the published link it doesn’t work.
Yo can activate it clicking in the dog or the text that says Puppies. I have to keep it nested since there is going to be multiple modals, one for each “dog”
@PHRyan I may be wrong, but when I tried using the new interactions I found difficult to duplicate the same interaction for multiple objects. In the old interactions all I have to do is click nested elements.
I need to create the same pop-up for 8 elements in the same page. Is there a way to make it easy?
Well, I believe the way you have it set up you could just leave it how it is. Keep the Legacy interactions the same but just make the pop-up close button on the new interactions. Target the “modal-wrap” and then change “Affect” to “All elements with this class” instead of “Selected Element”. That way, any instance of the pop-up would close no matter what.