0
Welcome Guest!
Login
0
items
Join Now
Login
Join Now
Search
Home
Grav
Themes
Joomla!
Templates
Extensions
WordPress
Themes
Plugins
Docs
Forum
Perks
Index
Recent Topics
Rules
Search Forum
Premier Support
ROCKETTHEME IS CLOSING ON JUNE 30, 2025.
As a thank-you to our community, enjoy
50% off all themes
with the promo code
THANKYOU
before we shut down. Read our
Farewell Blog Post
for more details.
You are here:
Forum
General
General Discussion
Topic
Adding a javascript to J2.5 the right way
Last Post
Search Topic
Garry Crick
Newbie
Posts:
4
Thanks:
0
Adding a javascript to J2.5 the right way
Posted 13 years 3 months ago
Ive had a good look around but can't find anything on these forums for J2.5?
1. Where do I put the JS file?
2. How do I get Gantry to load them?
Many many thanks for helping,
Garry
#779380
Henning
Preeminent Rocketeer
Posts:
29363
Thanks:
957
Volunteer
Re: Adding a javascript to J2.5 the right way
Posted 13 years 3 months ago
1. put it in js folder of the template
2. add this to the head tag of the index.php of the template
<?php $gantry->addScript('yourscript.js'); ?>
#779389
Garry Crick
Newbie
Posts:
4
Thanks:
0
Re: Adding a javascript to J2.5 the right way
Posted 13 years 3 months ago
Thank you so much!
I was thinking it had to go in the Gantry js folder, but now i see the logic!
Thanks once again, awesome help
#779394
Time to create page: 0.068 seconds
Powered by
Kunena Forum