Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #18008

    I’m using Lightbox Plus and it works great on pages. But on a portfolio page it won;t trigger the lightbox. The code is identical. Is there some difference between these two types of posts that would cause this?. What can I do?




    Can you post a link to your website please – maybe a js error causes the issue or you need to initialize the javascript function with the ajax call.

    Best regards,



    Thanks Peter.

    Sorting by “Word Prediction” and choose “Co:Writer” the “Watch a 5-Minute Demo” button is set to open the same lightbox item as at the top of this page…

    Now, if you’re viewing this portfolio page directly, it works fine…

    Thank you!



    The thing is that this page and have very little in common because of the ajax in the former. What’s interesting is that the first time I followed your directions, the lightbox poped up on the ajax page so initially I didn’t understand the problem or thought you fixed it. The second time, the lightbox popped up but partially and the page became empty with a white background. Only subsequent attempts caused nothing to popup and browser only treated the popup link as a regular link.

    You know , looking at the errors, the flash is on a different domain.

    Please add the code below to your .htaccess file in accordance with Please check that your Apache has the following modules running also : mod_headers.c … mod_setenvif.c

    # Cross-domain AJAX requests

    # Serve cross-domain Ajax requests, disabled by default.

    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"

    # CORS-enabled images (@crossorigin)

    # Send CORS headers if browsers request them; enabled by default for images.
    # (Purchase code hidden if logged out) -webgl-and.html
    # (Purchase code hidden if logged out) - (Purchase code hidden if logged out) /

    <IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
    # mod_headers, y u no match by Content-Type?!
    <FilesMatch ".(gif|ico|jpe?g|png|svg|svgz|webp)$">
    SetEnvIf Origin ":" IS_CORS
    Header set Access-Control-Allow-Origin "*" env=IS_CORS

    If this doesn’t work , you can put the flash on the same domain as the website and see how that works out. Because it seems as if its almost refusing to embed the video when its called from the other domain from the ajax page via an iframe.




    Thank you Nick! I’m going to try the later first. Makes sense.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Lightbox link not working only in portfolio pages’ is closed to new replies.