Step 1: Copy file into hooks
-directory
Copy the purchased and downloaded script file into the hooks
-directory of your website.
hooks/AppGiniHelper.min.js
Step 2: Include script
Open hooks/header-extras.php
in your editor and Include the script with the following line of code:
<script src="hooks/AppGiniHelper.min.js"></script>
Tips
Custom pages
If you are creating custom pages (see here), you may be facing the problem that referencing the library works for all pages but custom pages within hooks
-directory.
In these cases you should change the reference to this:
<script src="<?=PREPEND_PATH?>hooks/AppGiniHelper.min.js"></script>
Alternatively, you can reference a fully qualified url (address):
<script src="http://localhost/PATH/TO/YOUR/APP/hooks/AppGiniHelper.min.js"></script>
But keep in mind that you will have to change the src
-address when copying or moving your application to a different location. If, for example, you upload your app to a server called example.com, you will have to change src
to something like this:
<script src="http://www.example.com/myApp/hooks/AppGiniHelper.min.js"></script>
Do you like it?
We can only get better if you give us constructive suggestions for improvement. Just voting "No" without giving reasons or suggestions is not helpful and cannot lead to changes.
If you have been searching for a completely different solution than the subject says, this article can not be and will not be helpful for you. In these cases you should consider not to vote.
If something is not working as expected with your code, please post your detailed bugreport in the forum and make use of the free community support. This here is website feedback, only.