I had the slider working fine on a site, then pulled a copy of the site to another server to do some testing (for something else), and when I did so, things stopped working.
I’m loading the slider on the homepage in a custom page template where I added the recommended code:
if ( function_exists( 'soliloquy_slider' ) ) soliloquy_slider( 'YOUR_ID_HERE' );)
I explored a bit, and it seems the problem is the CSS and JS files aren’t being found since somehow the paths are getting written with duplicate info (instead of looking to http://www.mysite.com/folder1/folder2 as it should, it’s looking to http://www.mysite.com/folder1/folder2/folder1/folder2).
Looking at the source for the page, here are the duplicates:
<link rel="stylesheet" href="/folder1/folder2/folder1/folder2/plugins/soliloquy-lite/css/soliloquy.css?ver=1.5.1">
Any guidance on where/how to fix this very much appreciated!
- The topic ‘Path for CSS and JS files have duplicate content?’ is closed to new replies.