Jump to content

Button does something different on mobile than on web

Recommended Posts

How do I get a button to do something different on mobile than on web? I want the button to send people to the App Store if they are on mobile. However, if they are on web, I want to send them to a different page to ask for their cell phone. Is there a way to do that? i.e. send people to different URLs depending on if they are mobile or web.

Link to comment
  • Replies 1
  • Views 143
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

50 minutes ago, Andrew1198 said:

How do I get a button to do something different on mobile than on web? I want the button to send people to the App Store if they are on mobile. However, if they are on web, I want to send them to a different page to ask for their cell phone. Is there a way to do that? i.e. send people to different URLs depending on if they are mobile or web.

Creating 2 button with 2 link.

Using Css code to display  the appropriate button based on the device breakpoint

Hope it makes sense

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.