Script-Problems
-
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
- The topic ‘Script-Problems’ is closed to new replies.