Title: Javascript not working
Last modified: August 19, 2016

---

# Javascript not working

 *  [affiliate](https://wordpress.org/support/users/affiliate/)
 * (@affiliate)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/javascript-not-working-1/)
 * Hi, I have tried adding javascript to my code either in the page or the sidebar
   and cannot seem to get this to work for my site which is online. The same site
   I have locally works ok.
 * The script is calling a form which embeds onto my site, here is an example:
 * <script type=”text/javascript”
    src=”[http://link-to-booking-form/bookingform/coreEngine.php?agent=000&profile=text1&hiddenLocation=xxx”></script&gt](http://link-to-booking-form/bookingform/coreEngine.php?agent=000&profile=text1&hiddenLocation=xxx”></script&gt);
 * I’ve tried placing this in the sidebar using the HTML-Javascript Adder plugin
   which worked for my local install, also wordpress 2.8 but not for my site on 
   our webhost.
 * When I added the script to the page html, locally it displays but not on the 
   webhosted site, both appear identical.
 * Any help and advice appreciated

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [gazouteast](https://wordpress.org/support/users/gazouteast/)
 * (@gazouteast)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/javascript-not-working-1/#post-1157528)
 * similar problem here as explained in [http://wordpress.org/support/topic/274928](http://wordpress.org/support/topic/274928)
 * WP 2.8.x doesn’t seen to like calls to javascripts or php scripts outside of 
   its own /js/ folder
 * This will bring tears to affiliate marketers when it starts breaking their adsense
   and other scripts
 * Gaz
 *  [mscreativedesigns](https://wordpress.org/support/users/mscreativedesigns/)
 * (@mscreativedesigns)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/javascript-not-working-1/#post-1157607)
 * Hi everyone, I have a similar question. I am using an accordion menu in my side
   nav and it has alittle javascript in the one file called menu.js and then also
   jquery.js. I have tried all 2 of these ways and it is still not working.
 * <script type=”text/javascript” src=”<?php bloginfo(“template_url”); ?>/js/jquery.
   js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’);?
   >/js/menu.js”></script>
 * <script type=”text/javascript” language=”javascript” src=”/js/jquery.js”></script
   >
    <script type=”text/javascript” language=”javascript” src=”/js/menu.js”></script
   >
 * What am i doing wrong? I tried putting it in the header and in the footer no 
   luck.
    I have my js files in the js folder in my theme folder. I have tried many
   different ways and still no luck..
 * anyone have any advice??
 * thanks
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/javascript-not-working-1/#post-1157608)
 *     ```
       <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/jquery.menu.js"></script>
       <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/custom.js"></script>
       ```
   
 * is what I use and it functions fine….looks just like yours, except I use template_directory
   rather than template_url
 * I put mine in the header, just under the link_rel stuff
 *  [petrusfajarsubekti](https://wordpress.org/support/users/petrusfajarsubekti/)
 * (@petrusfajarsubekti)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/javascript-not-working-1/#post-1157609)
 * I think this bug has been fixed after WP 2.9
    My [blog](http://www.gameiterator.com)
   doesn’t encounter this problem. I add some javascript in some files with editor.
   My friend blog also has javascript problem when his blog is 2.8(he download earlier
   version from somewhere). But now it’s alright.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Javascript not working’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 5 participants
 * Last reply from: [petrusfajarsubekti](https://wordpress.org/support/users/petrusfajarsubekti/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/javascript-not-working-1/#post-1157609)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
