Softaculous


Topic : main menu and call to action page


Posted By: Jgiagirl on October 30, 2018, 6:24 am
I need to create an age verification page for my site but don't want the main menu to show up top on that specific page. Is it possible to create a new page with a call to action forcing the visitor to choose between Yes or No yet not allowing the main menu to show?
any help would be greatly appreciated  :D

Posted By: aakash_softac on October 30, 2018, 8:12 am | Post: 1
Hi,
You can use Splash Screen which will splash on screen when you can ask user regarding age restriction when user clicks on yes will be redirected to your page. On click of No user will be redirected to somewhere else.

You can add the following code in Custom HTML so that if the user clicks on Close button he will be redirected out site.
Code
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).on('click', '.smue-modal .smue-modal-close', function () {
window.location.href = 'http://www.google.com';
});
</script>

Do let us know if you need any other information.


-----------------------
Aakash Gupta
SitePad Developer

Follow us for faster updates
Twitter: https://twitter.com/sitepad_editor
Facebook: https://facebook.com/SitePad

Posted By: aakash_softac on October 30, 2018, 9:47 am | Post: 2
Hi,

It seems the current code is creating an issue with the scroll if added in Custom HTML.

Add this particular code in Mail Chimp Section as currently, SitePad does not have Custom HTML for the footer
https://www.sitepad.com/wiki/MailChimp

Do let us know if you need any other information.

-----------------------
Aakash Gupta
SitePad Developer

Follow us for faster updates
Twitter: https://twitter.com/sitepad_editor
Facebook: https://facebook.com/SitePad

Posted By: Jgiagirl on November 24, 2018, 8:06 am | Post: 3
Thank you Aakash, This was a huge help! I actually added it to the header custom HTML and it worked fine. Now my question is; how do i make it so the same page (index) if the same visitor goes back to "home" it doesn't keep popping up that splash screen? I assume it needs a cookie to remember the same visit/user?

Posted By: Jgiagirl on November 24, 2018, 8:12 am | Post: 4
:squi: Well, scratch that! Adding it to the header or footer does the same thing. It just keeps popping up the splash screen repeatedly making it impossible for the person to visit the home page. Hopefully the mail chimp advice will work.

Posted By: aakash_softac on December 3, 2018, 8:38 am | Post: 5
Hi,

Sorry for the delay in reply. It seems you will need to add/set cookie on click on Yes button. And you will need to make a check if the cookie is set then the user should not see the splash screen.

Do let us know if you need any other information.

-----------------------
Aakash Gupta
SitePad Developer

Follow us for faster updates
Twitter: https://twitter.com/sitepad_editor
Facebook: https://facebook.com/SitePad

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.