WordPress.org

Ready to get started?Download WordPress

Forums

Localhost won't call local external JS files (2 posts)

  1. kewalter
    Member
    Posted 4 years ago #

    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?

  2. 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>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.