Jump to content

Use a Class on Navigation Link

Recommended Posts

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


Link to comment

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.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.