Rich Walker Posted April 23, 2013 Share Posted April 23, 2013 I'm trying to add fancybox to the product description. The code below makes the fancybox popup but for the life of me i can't work out why it won't show the text. <a href="#inline1?content_only=1&TB_iframe=true&width=700&height=470&thickbox=true" class="iframe">INGREDIENTS | ORIGIN</a> <script type="text/javascript">/* <![CDATA[ */$('a.iframe').fancybox();/* ]]> */</script> <div id="#inline1" style="width:400px;display: none;"> {$product->description_short} </div> Any one got any ideas? Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted April 23, 2013 Share Posted April 23, 2013 (edited) Hi, <div id="#inline1" style="width:400px;display: none;"> try to change to <div id="inline1" style="width:400px;display: none;"> Regards Edited April 23, 2013 by Alexander Simonchik (see edit history) Link to comment Share on other sites More sharing options...
Rich Walker Posted April 23, 2013 Author Share Posted April 23, 2013 Hi Alexander, That didn't work. Thanks anyway. Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted April 23, 2013 Share Posted April 23, 2013 Hi again, i test code below, and it works: <a href="#inline1" class="show-fancybox">INGREDIENTS | ORIGIN</a> <div style="display:none"> <div id="inline1" style="width:400px;"> 45345345345 </div> </div> <script type="text/javascript">/* <![CDATA[ */$('a.show-fancybox').fancybox();/* ]]> */</script> Regards Link to comment Share on other sites More sharing options...
Rich Walker Posted April 23, 2013 Author Share Posted April 23, 2013 Hi Alexander Thank you so much for your help. That works great. Thank you Link to comment Share on other sites More sharing options...
WGD Posted January 9, 2015 Share Posted January 9, 2015 Hi again, i test code below, and it works: <a href="#inline1" class="show-fancybox">INGREDIENTS | ORIGIN</a> <div style="display:none"> <div id="inline1" style="width:400px;"> 45345345345 </div> </div> <script type="text/javascript">/* <![CDATA[ */$('a.show-fancybox').fancybox();/* ]]> */</script> Regards Hello, this code where I need to add? in which file exactly? I would need to put in fancybox also the product data sheet (page-product-box) how should I do? Are in big trouble! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now