REMINDER
SOLVED Modal exit button
-
Hi Appdrag team
We have feeback from people thinking that when a modal opens, they can't exit it because there is no "x" / close button.
I know pressing "esc" or clicking outside of it closes it, but I think it would be nice to have a close button at the top right corner for example, for people who are less comfortable with website navigation.Many thanks!
-
@myriam-mira we don't have such feature with our standard modal
but technically you can add a close button inside your modal and onclick call something like this:
parent.closeModal();
and in the page that contain your modal you will have to create in a block of code this function
<script> function closeModal(){ $(".remodal-wrapper").remove(); $(".remodal").remove(); } </script>
-
@joseph-benguira Hi Joseph, thank you very much!
I added a title to the modal (which is not mandatory) and it displayed a little 'close' button on the upper-right corner (as well as the modal title of course).
Maybe it would be nice to move it from the title line, since it is not mandatory, to the modal content?
Anyway, many thanks!