• 0

Wordpress and Custom Scripts ?


Question

I`m building my 1st Wordpress CMS system for my site everything is going smoothly except for adding custom scripts this my header.php i don`t think there is anything wrong.captureye.png

and when i open firebug the page loads without any errors but when i try to see the script using firebug this is what i get

36465259.png

twitter script & HTML5 script are working but any local script is not i don`t know what is the problem , i tried to read many many articles and tried many solutions but i can`t fix it. so i hope i can get help

Thanks

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Are you trying to access Javascript files that are hosted on your PC from a website? Some browsers won't allow that.

But if you're working ALL on localhost... what happens if you go to the URL of the Javascript file directly? If it loads, copy that URL into the header and see if it works at that point.

Link to comment
Share on other sites

  • 0

I had some issues getting wordpress to play nice with my scripts when I had multiple script files.

Try using jQuery in compatibility mode.

Instead of: $('blah').blah();

Use: jQuery('blah').blah();

That fixed my problems.

Link to comment
Share on other sites

  • 0

i found the problem and fixed it , i missed a folder name in the path to the JS files :( , thanks

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.