Jump to content

Is there a way to load an alternative svg codeblock on mobile?

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

34 minutes ago, smithy_sw said:

I'm using code blocks to add svg illustrations to my site which is working great. But does anyone know if there's a way to swap out an alternative svg code block on mobile? 

Any help will be much appreciated.

I think we can by adding you alternative svg code block on mobile and using media query to display or hide the appropriate block

https://www.w3schools.com/css/css_rwd_mediaqueries.asp

Hope it makes sense

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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.