0

I have a HTML/CSS form which requires an external Javascript. I have the HTML on my required page with linking code to the javascript. I have a wordpress website and I just put the folder with the javascript in Public_HTML. Is this correct, it is not working for some reason? Code in HTML:

 <script src="csgoboost/js/jquery.js"></script>
 <script src="csgoboost/js/bootstrap.min.js"></script>
 <script src="csgoboost/js/boosting.js"></script>

Thank (I am a bit of a beginner)

asked Mar 3, 2016 at 7:58
3

1 Answer 1

1

if you are using wordpress then put the js folder in themes folder like

public_html/wp-content/themes/yourThemeName/js-folder

and then call the

<script src="<?php echo get_template_directory_uri();?>/js-folder/file.js"></script>
Noman
4,1361 gold badge23 silver badges37 bronze badges
answered Mar 3, 2016 at 8:06
Sign up to request clarification or add additional context in comments.

6 Comments

Hello, I've done shat your told me to but it seems like it still doesn't work.. =(
I know, I have put the JS folder in there
in the header.php file or footer.php file you call this function <script src="<?php echo get_template_directory_uri();?>/js-folder/file.js"></script>
Oh I put it in the page with my HTML form. Do I also put it in the header?
Put in header or footer.
|

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.