0

I would like every new visitor to be redirected to a splash page upon their first visit. They need to enter their email/submit in order to get into the site. This isn't the standard login type of arrangement, I don't want them to have to log in or hit this splash page again the next time they come back to the site.

Does that make sense?

Assume I know nothing - you'll be close to right....so as clear/instructive as possible.

closed as too broad by Howdy_McGee, TheDeadMedic, Mark Kaplun, gmazzap, Mayeenul Islam Nov 1 '15 at 9:36

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Use cookies (php.net/manual/en/features.cookies.php) or if the user has any information saved into wordpress, use user meta functions to store the information once the splash page has been seen, and retrieve it back once the user access the page again. (codex.wordpress.org/Function_Reference/add_user_meta) – gdaniel Oct 27 '15 at 21:52
  • 4
    This question shows no real effort and is just asking "Hey, do this task for me!" Cookies is the right direction, have you tried creating a cookie yet? – Howdy_McGee Oct 27 '15 at 21:52
  • Howdy_McGee - I wasn't asking for someone to do it for me - I was asking for guidance. Not meaning to be disrespectful - but I didn't know where to begin, if it was possible...nothing. – Dawn Oct 27 '15 at 22:08
  • Using post meta will be a better option then using cookies. For example. You can check for a postmeta show_splash if it exists. When it does show the splash page. – Sisir Oct 30 '15 at 10:12
1

Adding a splash page adds an extra step between your user and the information they are looking for. Making it non-optional as you seem to be suggesting will have a serious impact upon your visitor figures. Personally I would not want to impart my email address to a website without knowing more about the site and if it even has the relevant information I am looking for. I would strongly suggest you make this an optional pop-up.

Now to answer your question. To achieve this you would need a plugin, you can either write your own or use a pre-built one. I personally would write my own as I could tailor it to my own needs.

As others have suggested cookies are the best way to achieve this. If you do use cookies you will need to display a warning message to visitors from the EU that you are storing a cookie on their computer.

  • I just realised that the original link I provided about the cookie warnings was not actually a government agency website but a private company. I've amended the link to go to a government agency. In my defense the ICO website isn't properly indexed. – Burgi Oct 28 '15 at 11:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.