November 20, 2012 at 8:36 am #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?
ThanksNovember 20, 2012 at 1:22 pm #97897
PeterNovember 20, 2012 at 5:35 pm #97898
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!November 23, 2012 at 5:15 am #97899
The thing is that this page http://djdevelopment.net/2/ and http://djdevelopment.net/2/portfolio-item/co-writer/ 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 http://code.google.com/p/html5security/wiki/CrossOriginRequestSecurity 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.
Header set Access-Control-Allow-Origin "*"
# CORS-enabled images (@crossorigin)
# Send CORS headers if browsers request them; enabled by default for images.
# mod_headers, y u no match by Content-Type?!
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.
NickNovember 29, 2012 at 7:03 am #97900
The topic ‘Lightbox link not working only in portfolio pages’ is closed to new replies.