fbpx

Trick or Treat - 30% OFF - Coupon Code: SCARY20 Grab the Deal!

Welcome, Guest
Username: Password: Remember me

TOPIC: (SOLVED)Wasting time trying to add JS scripts before body & Head?

Waisting time trying to add JS scripts before body & Head? 4 months 3 weeks ago #22876

  • Chacapamac
  • Chacapamac's Avatar
  • Offline
  • Elite Member
  • Posts: 166
  • Thank you received: 4
  • Karma: 0
I’m looking through your documentation to find how to insert 2 js scripts in the template manager
— One Before </head>
— One Before </body>

So Far it is not working!. :(
• I’m working on my local server (Mamp)
• Both js are in the template js folder

I try all kind of way in both template manager input box without success.
Not working examples:
<script src="/templates/astroid_template_zero/js/scroll-out.min.js"></script>
<script src="templates/astroid_template_zero/js/scroll-out.min.js"></script>
<script src="scroll-out.min.js"></script>

Extremely frustrating as this SHOULD BE extremely clear FIRST in the Template manager itself and in your documentation and videos. It is obviously not as I have to come here to have a clear answer....
The topic has been locked.

Waisting time trying to add JS scripts before body & Head? 4 months 3 weeks ago #22884

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 4153
  • Thank you received: 609
  • Karma: 108
This one should work:
<script src="templates/astroid_template_zero/js/scroll-out.min.js"></script>

Are you able to see what is returned in the console?

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The topic has been locked.

Waisting time trying to add JS scripts before body & Head? 4 months 3 weeks ago #22890

  • Chacapamac
  • Chacapamac's Avatar
  • Offline
  • Elite Member
  • Posts: 166
  • Thank you received: 4
  • Karma: 0
Thanks Chetan, My problem was that I use the 2 slash comment when I was suppose to use the <!--xyz --> system of comment.

Suggestion:

• I think you should show examples of what exactly should go in all Custom Code Template manager input directly in the template manager and also add that to your documentation.

—Something like that:
<!-- My custom javascript 1 -->
<script src="templates/my template_name_here/js/my-custom-javascript.js"></script>
<!-- End - My custom javascript 1 -->

Same type of example with external calls


Work Perfectly.

By the way how to take out your name in the copyright of astroid zero ?
I have the Agency Bundle...

Last Edit: 4 months 3 weeks ago by Chacapamac.
The topic has been locked.

Waisting time trying to add JS scripts before body & Head? 4 months 3 weeks ago #22891

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 4153
  • Thank you received: 609
  • Karma: 108
Okay, got it! Will see what I can do there.

C'mon keep the copyright!

The footer can be adjusted from the backend. No? docs.joomdev.com/article/footer-section/
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The topic has been locked.
The following user(s) said Thank You: Chacapamac

Waisting time trying to add JS scripts before body & Head? 4 months 3 weeks ago #22904

  • Chacapamac
  • Chacapamac's Avatar
  • Offline
  • Elite Member
  • Posts: 166
  • Thank you received: 4
  • Karma: 0
[SOLVED]
The topic has been locked.
Moderators: chandandeep
Time to create page: 0.315 seconds
Cron Job Starts