blainedeutsch Posted January 5 Posted January 5 Hi! I have an image on my client page - https://www.blaineand.co/clients-carson and have reformatted this to fit better on mobile - how can I I get the proper image to show up on each platform? Thanks!
blainedeutsch Posted January 5 Author Posted January 5 I'd like to keep the desktop version as is - and replace the image with the attached file on the mobile version
tuanphan Posted January 9 Posted January 9 With Image Block, you can add this code to Website Tools (under Not Linked) > Custom CSS to replace it with new image on mobile @media screen and (max-width:640px) { #enter-image-block-id img { content: url(https://cdn.pixabay.com/photo/2023/12/24/15/03/bougainvillea-8467373_1280.jpg); } } Replace Pixabay with mobile image url Replace #enter...id with image block id. Use this free tool to find id: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment