Website with feature I want to replicate: http://the-big-bang-theory.com/shop/Official-Clothing/
Once the shirt is clicked on this page, it takes you to stylin online but also opens a lightbox with content on the-big-bang-theory.com website.
I have a lightbox plugin installed on my WordPress site and it works when I add the class "fancybox" to my links. I am having difficulty setting it up so it will open the link to the item in a new tab AND open a lightbox in my webpage at the same time with the content I want to display. Any ideas on how I can get it working properly? Code below:
Once the shirt is clicked on this page, it takes you to stylin online but also opens a lightbox with content on the-big-bang-theory.com website.
I have a lightbox plugin installed on my WordPress site and it works when I add the class "fancybox" to my links. I am having difficulty setting it up so it will open the link to the item in a new tab AND open a lightbox in my webpage at the same time with the content I want to display. Any ideas on how I can get it working properly? Code below:
Code:
<!-- Link offsite to an eCommerce shop -->
<a href="#link_to_buy" target="_blank"><img src="#image_link" /></a>
Item Description
<!-- Link to lightbox content -->
<a href="#shop_pop" class="fancybox">CLICK ME!</a>
<div style="display:none" class="fancybox-hidden">
<div id="shop_pop">
Lightbox content in here
</div>
</div>
Comment