I am using the jQuery autocomplete on a site that I am building. It works perfectly everywhere but, in a section of the site where I am using wordpress, the results aren’t displayed.
The weirdest part is that in the home of that section, it works, but when I go to a subsection or an article, it doesn’t.
This is the home of the wordpress section, the autocomplete search is top left:
http://www.metagame.gg/news/
This is a subsection where it is not working:
http://www.metagame.gg/news/category/opinion/
I have been trying to figure out what is happening, but I couldn’t fix it.
Any idea?
Thank you in advance.
you have 5 errors which is most probably the reason your JavaScript not working
mainly there is 2 missing js files (http://www.metagame.gg/news/category/js/jquery.js & http://www.metagame.gg/news/category/js/jquery-ui.js) and a missing CSS http://www.metagame.gg/news/category/opinion/style.css
further investigation:
you’re using a relative path for the jQuery and jQuery-UI which explains why on homepage you can find root/js/jquery.js but not in root/news/category/js/jquery.js.
you need to reference root/js/jquery.js from all other pages as well.