Forums

Lightbox working on my posts but not pages! (5 posts)

  1. redmeanie
    Member
    Posted 1 year ago #

    Hello everyone. I've spent a day or so battling with this but need some help.

    Our site is http://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 (http://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
    * http://sa1printing.com/gallery/css/lightbox.css
    * http://sa1printing.com/gallery/js/lightbox.js
    * http://sa1printing.com/gallery/js/prototype.js
    * http://sa1printing.com/gallery/js/scriptaculous.js?load=effects,builder

    I 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?

  2. redmeanie
    Member
    Posted 1 year ago #

    Still haven't figured this out, but it's down to the permalink structure. I have it set at /%post_id%/%postname%/ BUT if I change it BACK to default, it works fine.

    I'd like to use /%post_id%/%postname%/ though,
    so does anyone have any advice?

  3. jorgo
    Member
    Posted 1 year ago #

    Have the same issue, it's not working on pages, please help.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    @jorgo: Please post a new topic - including a full description of your problem.

  5. jorgo
    Member
    Posted 1 year ago #

    sorry, the issue is solved: must link each old picture with the effective url and then the lightbox works...

Topic Closed

This topic has been closed to new replies.

About this Topic