Ok, trying to create a series of Modals.
I successfully, and painfully created 3 from scratch.
Now I want 3 more just like them with different images and text etc. So I thought in my head “Ok, easy, I’ll copy/paste the original Modals I created, give the new ones a different class name, then go in and change the image text etc. Easy peasy”.
Not so easy peasy. Here’s what I did:
copied Modal with class “modal” and pasted it where I wanted it. I selected the new Modal and clicked the paintbrush. Then I clicked on the plus to add a class name and named it “modal-3” (the previous 3 modals were named modal, modal-1 and modal-2). Then I clicked the X to remove the old class “modal”.
But then it showed me what you see when you haven’t added a class to an element yet. But I just did…I added “modal-3”. All attributes that WERE there when it carried the “modal” class are now gone.
I tried all this again, but I left both classes, and the modal’s didn’t work properly.
Do I really have to re-build each and every modal one by one from scratch? That’s no easy task. Why can’t I copy/paste an element and just change it’s class without losing it’s attributes?