-
AuthorPosts
-
February 26, 2016 at 1:22 am #813168
Hi There.
I’m trying to make a button create a small pop up window like the BOOK NOW button on this website http://truesouth.com.au/bookings/For some reason the button when clicked is going to a new tab rather than a pop up.
Can you clarify please.
February 26, 2016 at 2:17 am #813220Hi,
Thanks for writing in!
Please try changing the code with this.
<a href="http://widget.dimmi.com.au/entry/2487?referrerUrl=http://www.truesouth.com.au&ShowHeader=True" class="lightbox-selector popup" data-height="500" data-width="500" data-type="iframe">Click Me</a> [lightbox selector=".lightbox-selector"]
Hope that helps.
March 1, 2016 at 5:18 am #818201This reply has been marked as private.March 1, 2016 at 5:21 am #818205Hi there,
You can use Raw Content or Text element to insert this code in Cornerstone.
Thank you!
March 1, 2016 at 5:46 am #818240Thanks.
Unfortunately this just creates a text link and not the button I had built before using the button element in cornerstone.Also the lightbox pops up full screen and not in a small window ontop of the page like on the website example I previously provided.
Can you help?
March 1, 2016 at 6:18 am #818285Hi there,
If you want to show a popup like the example, remove the above provided code and add a simple button element in your Cornerstone page. Then add a custom CSS class of open-popup under Class field of your button settings (see: http://prntscr.com/7qeolc) and add following JS code under Custom > JavaScript in the Customizer:
// Open Links in a Popup Window jQuery(document).ready(function($) { $('.open-popup').click(function(e) { e.preventDefault(); window.open($(this).attr("href"), "popupWindow", "width=500,height=500,scrollbars=yes"); }); });
Thank you!
March 1, 2016 at 6:45 am #818336This reply has been marked as private.March 1, 2016 at 6:49 am #818342This reply has been marked as private.March 1, 2016 at 6:51 am #818350You’re welcome! 🙂
-
AuthorPosts