Hey there
Thanks for the reply. No I need the external webpage to open in a lightbox (MENU). Just like the working lightbox example. The other link "learn more" to go to another page inside the site like normal. The lightbox MENU is opening a table of contents where you can click a chapter and go to that page. Once you click a chapter the lightbox disappears and it goes to that URL in the parent window.
I'm only using ION for specific assessments and ebook things. Once I have the header correct I can re-use the code. I am building landing pages and other mini sites that I would like to carry over the header outside of the ION platform.
kineticcreative123 wrote Hey there Thanks for the reply. No I need the external webpage to open in a lightbox (MENU). Just like the working lightbox example. The other link "learn more" to go to another page inside the site like normal. The lightbox MENU is opening a table of contents where you can click a chapter and go to that page. Once you click a chapter the lightbox disappears and it goes to that URL in the parent window. |
So your document below IS now opening the the lightbox when you click on the MENU button, is the page which is coming into the lightbox your table of contents?
untitled document
OK I see what you mean that is the stupid Bootstrap classes causing confusion for you! Add the class 'open-lightbox' to the MENU link, like below:
class="btn-nav open-lightbox" href="#">MENU</a></li>
Then change the click function in the script to as below: (marked in red)
<script>
$(document).ready(function() {
$('#page-overlay, #lightbox-wrapper').hide();
$('.open-lightbox').click(function(){
$('.lightbox-content').html("<div class='close'>×</div><iframe width='100%' height='390' src='http://www.premierinc.com' frameborder='0' allowFullScreen></iframe>");
$('#page-overlay, #lightbox-wrapper').fadeIn();
});
$('.close, #page-overlay').css('cursor','pointer').click(function() {
$('#page-overlay, #lightbox-wrapper').fadeOut();
});
});
</script>