Jump to content

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

Recommended Posts

  • Replies 2
  • Views 205
  • 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

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.