Forum Support

Shape 5
March 28, 2024, 05:59:59 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Custom Javascript for Age Verification  (Read 889 times)
webmeup
Jr. Member
**
Offline Offline

Posts: 31



« on: May 23, 2017, 03:59:00 PM »

I'm trying to add a custom page for age verification on every page. However, I'm looking at the index.php file and there is a ton of code there.

Can you please direct me to where I should add my custom js/css/html so I can display that before displaying any pages on the site (including the main page)?

Ideally, I'd just like to have a modal dialog be displayed with the options that overlays the page.  I assume there is existing code to display a popup in Vertex?

Any help would be greatly appreciated.

Thanks
« Last Edit: May 23, 2017, 05:02:42 PM by webmeup » Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: May 24, 2017, 02:36:32 PM »

Hello,

To do a popup as you describe would require custom coding and there isn't really a popup available to do so in Vertex. Perhaps you could use multibox or s5box to trigger it though. I'm not sure.

You can add JavaScript code right in the Joomla admin area of Vertex. I believe its under the General tab.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
webmeup
Jr. Member
**
Offline Offline

Posts: 31



« Reply #2 on: May 24, 2017, 04:14:25 PM »

I don't have a problem with custom coding. 

What I need to know is where to insert the code so it gets executed after the page loads so it doesn't interfere with the theme.

Can you help direct me toward that?

Thanks
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #3 on: May 25, 2017, 12:43:58 PM »

Yes its where I stated in the backend admin area of Vertex. You just go to the template manager in Joomla and click on the cleanout template. Make sure you are on the latest version of Vertex and then in the General tab you'll see the area you can add it. 

Or you can also add it in the index.php file at the bottom before the closing body tag too.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.