smithy_sw Posted March 11, 2022 Share Posted March 11, 2022 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. Link to comment
Beyondspace Posted March 11, 2022 Share Posted March 11, 2022 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, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
smithy_sw Posted March 14, 2022 Author Share Posted March 14, 2022 On 3/11/2022 at 4:33 PM, bangank36 said: 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 Thanks for the advice. I'll take a look and see if I can work it out 🙂 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