Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Adding JavaScript

Featured Lock Resolved
Hello,

I want to add some JavaScript to a template page so that the script will work on all of the article pages. Right now, I have to add the js to each article individually, but there has to be a way that I can add the js to one of the index pages and have it work.

Can you tell me which file to add the js to, where that file is located, and anything else that I have to do to get it to work?

Thanks!

3 Answers

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
index.php of fiction template

Michael Rohde

More than a month ago #Permalink
kowshar wrote:
index.php of fiction template


Thank you. That worked. Thanks again for the very fast response. If you're curious what the js was for, I just became an Amazon Associate and visitors can now purchase Amazon products from my site. The js allows a pop up window to appear when the visitor hovers over the link. The pop up includes a check out button for very fast purchases.

Here's the link if you want to see it in action:
http://www.goozernation.com/video-games/

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
Thanks for sharing.


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 127
Sifat

Sifat

Total Accepted Answers: 89
Toufiq

Toufiq

Total Accepted Answers: 45
Pavel

Pavel

Total Accepted Answers: 6
Sohan

Sohan

Total Accepted Answers: 5

114

Templates

292736

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us