Lightbox working on my posts but not pages!
-
Hello everyone. I’ve spent a day or so battling with this but need some help.
Our site is https://sa1printing.com
We have a lightbox gallery installed, and it’s always worked fine until this weekend.The strange thing is, it is working ok as a post in our home page feed, but when you view the same code within a page (https://sa1printing.com/gallery) it doesn’t work, it just opens up the image in a window. The same also happens when you click on the title and/or load the permanent link directly.
It’s also worth saying that it PREVIEWS in wordpress fine (as a post or page), but when it’s published, the page fails to load lightbox.
I installed an seo plugin at the weekend which changes permalink structure. I’ve toggled it on and off, but it doesn’t seem to change anything now.
I THINK THE PROBLEM IS Due to bad requests…
Google’s speed test flagged up that I had bad requests on the gallery page.
The requests are
* https://sa1printing.com/gallery/css/lightbox.css
* https://sa1printing.com/gallery/js/lightbox.js
* https://sa1printing.com/gallery/js/prototype.js
* https://sa1printing.com/gallery/js/scriptaculous.js?load=effects,builderI think wordpress is adding the ‘gallery’ bit to those locations. That’s why it can’t find them.
What can I do to prevent it? How do I stop it inserting the page title?
- The topic ‘Lightbox working on my posts but not pages!’ is closed to new replies.