Support » Fixing WordPress » Localhost won’t call local external JS files

  • I’m running 3.0 RC2 on a localhost. I can’t call any external javascript files. If I try the whole script tag disappears in the output. Hosted external files will work fine.

    Works:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

    Outputs blank:
    <script type="text/javascript" src="js/jquery.infieldlabel.min.js"></script>

    Any ideas?

Viewing 1 replies (of 1 total)
  • Chris Olbekson

    (@c3mdigital)

    Level 12 Bug Squasher & Forum Moderator

    Assuming the js folder is in the same parent directory as your theme you call it like this:

    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.infieldlabel.min.js"></script>
Viewing 1 replies (of 1 total)
  • The topic ‘Localhost won’t call local external JS files’ is closed to new replies.