WordPress.org

Ready to get started?Download WordPress

Forums

Absolute URL to jar file fails to be recognized (3 posts)

  1. 4evrblu
    Member
    Posted 7 years ago #

    I use the following call to reference an all-in-one jar file that works in several themes. I created a "scripts" directory in my wp-andreas09 theme that resides in the themes root directory, if you will.

    The line in the header looks like this:
    <script language="javascript" type="text/javascript" src="http://totalphysiqueonline.com/wordpress/wp-content/themes/wp-andreas09/scripts/all-spice.js"></script>

    Url to the js file is valid and works, and points to the file correctly, yet, when I try to get my theme to recognize it using the call line above, it fails to see the jar file.

    What am I overlooking here?

    Thanks

  2. Samuel B
    moderator
    Posted 7 years ago #

    I use a similar call on several sites.
    Try:
    `<script type="text/javascript" src="/wordpress/wp-content/themes/wp-andreas09/scripts/all-spice.js">

    This works for me on several differing sites. The absolute url should work, too, though.

  3. 4evrblu
    Member
    Posted 7 years ago #

    I am not sure what I had wrong, but somehow I must have mistyped something.

    <script language="javascript" type="text/javascript" src="/wordpress/wp-content/themes/wp-andreas09/js/all-spice.js"></script>
    <script language="javascript" type="text/javascript" src="/wordpress/wp-content/themes/wp-andreas09/js/menus.js"></script>
    <script type="text/javascript" src="/wordpress/wp-content/themes/wp-andreas09/js/gwscripts.js"></script>

    This is what I am not using. It seems to be working, for the moment LOL

Topic Closed

This topic has been closed to new replies.

About this Topic