+ 1
how to open signup form when click anywhere in the page
i already have signup form in my wordpress when i click ignup button it opens but i want to open sign up form when click anywhere in the page when user not logged in only in wordpress
4 Antworten
+ 3
That's bad usability for the user, to force the sign up form to appear, wherever they click.
It's better to get genuinely interested people signing up, rather than spamming people.
If a sign up form appeared when I clicked somewhere random, I'd leave the website.
Just trying to give you a heads up.
+ 1
i agree with Xan regard the usability. I don't like you have to force me to make something ...
Anyway, just to answer to your question, you can add a listener on the body or on a parent tag to trigger a click event.
Then, after you signup, you can remove the event listener (prefer) or you can add an if condition inside the event callback.
https://code.sololearn.com/W7Qsu4vgv8vM/?ref=app
+ 1
So you are the next reason people uses adblock.😤
0
i dont want this i have working in a company that is their requirement he is the boss i am the employer thats why i am doing what he is saying. i already suggested this thing (what you are saying) but he refused it thats why i am asking bro and thanks to every one.