jQuery/Javascript not loading in custom theme, but only on my server!
-
I’ve gone through the forums trying to solve this, but none of the solutions work for me…
I have made a theme from scratch, using Masonry with InfiniteScroll included in the theme (not using InfiniteScroll as a WP plugin).
The thing is: It all worked fine when setting up the theme locally using MAMP. And it all worked fine on my personal site (https://www.cinaed.net/wp)
However, when setting up the proper site for my studio (on a temporary URL – might this be the issue?) the scripts are not loading.I’ve used
<?php wp_enqueue_script('jquery'); ?>
to load jQuery, and have used relative paths to load the other scripts. I have even used$j=jQuery.noConflict();
to set up my scripts.Any idea why the scripts are not loading on that specific server, when they worked just fine on the 2 others?
The site in question is found at https://kolonihaven-no.web.nsn.no/
- The topic ‘jQuery/Javascript not loading in custom theme, but only on my server!’ is closed to new replies.