• Resolved zeemidesign

    (@zeemidesign)


    Hey,

    I’m currently developing a wordpress theme and have a slight problem.
    I want to use the a javascript file, which I properly call in the header:
    src="<?php bloginfo('template_directory'); ?>/slider/javascripts/jquery-1.3.2.min.js"
    If I type now the url (https://localhost/wp-content/themes/theme/javascripts/jquery-1.3.2.min.js) in the address bar of my browser wordpress loads the standard 404 page even though the file is there (if I replace localhost with C://xamp/etc. the file shows up).
    I put the file now directly in the root-folder, changed the url in the header and it miraculously worked, but I would really prefer to keep the script within the theme folder.
    Why does wordpress block/ignore the script-file when it is placed within the theme-folder? Are there certain file-restrictions (only .css/.php and image files or something)? Did anyone else experience this kind of problem?

    Kind regards
    Max

Viewing 1 replies (of 1 total)
  • Thread Starter zeemidesign

    (@zeemidesign)

    I figured it out,
    the problem was that the scripts themselves hat dots within their name (e.g. jquery-1.3.2.min.js), once I renamed them with a dot only in front of the file-ending everything worked just fine.

Viewing 1 replies (of 1 total)
  • The topic ‘Script-Problems’ is closed to new replies.