bridsandparadise Posted December 3, 2021 Share Posted December 3, 2021 Site URL: https://octopus-glockenspiel-8yae.squarespace.com/ Site URL: https://octopus-glockenspiel-8yae.squarespace.com/ Hey folks - Huge thanks in advance to anyone who can steer me in the right direction here. I'm working on a site for a restaurant - they have code from their online ordering platform that opens a kind of like a lightbox-widget that allows users to order without leaving the page. I have the functionality working, but I'm trying to launch this via a navigation link. I think it's just syntax I'm having trouble with. Below is what I'm working with. That main script is in a code block in the footer, launches totally fine with that full button class in the body, but if I'm trying to get it to work in the navigation would it be a link with '#upserve-olo-opener' or...how do I fire that same action from the nav? code to order online: <script src='https://app.upserve.com/platform/olo-widget.js?kokeshi-restaurant-salem' type='text/javascript' id='upserve-olo-script'></script> button code: (provided by service) <button class='upserve-olo-button upserve-olo-opener'>Order Online</button> Site URL: https://octopus-glockenspiel-8yae.squarespace.com/ Password: thanksforthehelp Thanks! Link to comment
bridsandparadise Posted December 7, 2021 Author Share Posted December 7, 2021 I think it's just a simple syntax thing but this is really giving me some trouble if anyone has the ability to help. Thanks! Link to comment
tuanphan Posted December 11, 2021 Share Posted December 11, 2021 I think it is complex thing. You can use Lightbox Plugin to achieve this. Or if you need another way, try posting to Squarespace Customization Resource Group. Idea with plugin is create a lightbox page >> add script code >> then add lightbox page url in navigation link. prcreative 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment