Jump to content

Need help with PHP code to change Lightbox target...


brewbaker

Recommended Posts

Doing a horizontal scrolling site project and trying to use Lightbox to show portfolio images. Here's the deal--I have everything working but there's one wrinkle. I have the gallery content loading in an iframe because that works best in the horizontal scrolling design. When you click on a thumbnail you can't go to another page like in a normal design because the site is one big page. So the page "album.php" loads in an iframe. However once it's loaded and you click on an image, the Lightbox loads in the iframe too which is not big enough to have the full screen effect I need. That's the wrinkle. Is there a way to modify the PHP code to have the lightbox content load in the full screen, something like target="parent" instead of in the iframe?

 

Here's the link so you can see what I mean:

 

http://staging.workshop-marketing.com/index-current.php#Approach

 

The page in question, not in the iframe showing the full screen effect I need:

 

http://staging.workshop-marketing.com/album.php

 

Here's the code I think needs to be modified, however I'm not a PHP coder:

 

<?php <br /> if(isset($_GET['s'])) {

$opts = array(

'template' =>'c_list_image.html'

);

perch_gallery_album($_GET['s'], $opts);

} ?>

 

Thanks for any suggestions and help--

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.