Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

Indexhibit was updated to version 2.1.4 on April 10, 2017.

loading js file in the header

 

Indexhibit version: Legacy
Thread is not resolved.

yavuz
TURKEY
7 year(s) ago
Permalink Post

I am trying to load a js file in the header for a plugin that I am developing for my wife's site.
http://mihrinnisa.com
Plugin is for front page.
I have managed to get the data I need from the db.
However, I have no clue about how to load a js file in the header.
I have seen some lines like
$exhibit['lib_js'] = array('grow2.vaska.js'); in exhibit.grow_no_title.php
I have tried to do the same but it did not work?
What is the best way to do this?

yavuz
TURKEY
7 year(s) ago
Permalink Post

The page link is mihrinnisa.com

lemathieu A
FRANCE
7 year(s) ago
Permalink Post

Open your theme index.php

You see that call at the 16th line :

  1. < script type='text/javascript' src='<%baseurl%><%basename%>/site/js/jquery.js'></script>

So upload the .js file you have (in /ndxz-studio/site/js) and call it the same way from the same place in your index.php.

yavuz
TURKEY
7 year(s) ago
Permalink Post

Thanks a lot.
Works like a charm....

Showing 1 - 4 of 4 posts in Forum » Customize » loading js file in the header
 

This thread has been closed, thank you.