⚠ IMPORTANT CSS UPDATE ⚠ When logging into Squarespace, if you see the word "Website" at the top of your menu, you are using their new internal navigation! To edit the CSS of your Squarespace website, click on the word "Website" and scroll to the bottom of the list of pages. Here you'll see "Website Tools" - click on that option and select "Custom CSS" to open the CSS panel and add your code here. For more information, watch this tutorial: ruclips.net/video/euJqHXs_L1M/видео.html
You must be send from heaven, jeeezzzzz! How are you not famous with million subcribers?! The way you explain things so simple and clear, mindblowing! Thank you so much! I am on line 107 with coding my website and it's all codes from your youtube channel. LOVE LOVE LOVE!!!!!!
I normally design in WordPress but my new client wants a website in Squarespace, a first time for me. Thank you so much for this tutorial! It worked like a charm. You have FOREVER changed my design life!!!
I still use this every single site I build on Squarespace - I can style mobile without having to sacrifice the desktop canvas. I've even made a breakpoint for tablet on one, intricate landing page. So sweet!
LOVE this tutorial!! It's a game changer and so much easier having this as an option when you really want something on desktop that just doesn't work on mobile :)
This is by far one of the most helpful AND (at the same time) easiest tutorials I have ever found. You've made my life so much easier and have saved me hundreds of hours of stress and frustration. THANK YOU!!!
You are an angel!! I literally have the tech skills of an average 80 yr old, but my website is an art portfolio so I feel like I NEED things arranged in a certain way. Thank you SO much for explaning this in a way that some one who doesn't actually know what CSS is an aronym for can 1) understand and 2) exicute using the copy-paste code and linked tools you provided!
Thank you, that was great. It was driving me nuts that changes weren't separated. It boggles me there is no way to toggle this inside of squarespace. Oh well, this works wonders!
Great tutorial! Question, when I hide a section, there seems to be a blank space in my vertical layout where the hidden section is stored. This blank space is creating a strange spacer in between my content. How do I correct this? Thank you!
That's really odd 🫤 Display:none removes the section completely so something else is getting in the way. I'd recommend checking to see if you have a border enabled on either one. You can also dig into the source code via inspect tools to find the culprit; best of luck!
You might be using a different version of Squarespace than what this video was created for, which means the codes won't work for your site. Check out this article for more info on that: insidethesquare.co/themes
Great question! You can create a swap like this for content blocks as long as you separate the blocks with a comma. A word of caution: when you hide a block, the layout will change, so sometimes a full section swap is easier than modifying every content block inside. 😉
Nope - 7.0 websites don’t have page sections. Brine index pages and other 7.0 standard pages use different selectors, so this code work. You can learn more about the differences at insidethesquare.co/themes
I am not sure if my comment disappeared but thanks a lot for the tutorials! I managed to get it work however struggle with implementing the code for the custom mobile layout from your other YT video with this one. I would love to use different min width on my desktop version and cannot get the code to work (either nothing happens or the overall scrolling effect disappears)...
To adjust the min width in your desktop you should use the site style setting for spacing. You can adjust the site max width and the site gutter there. Hope that helps!
So I’m theory that code is for one set of mobile/desktop sections on one page with the id.. but what if there’s a few sections like that on a page and on a few different pages? Do you just basically copy and paste and have like 10 of these paste codes in that one css section? I know it’s your demo site but it’s one thing I noticed in your videos if you did all these tutorials mixing them on one site you can have all these codes in the same main css panel?
You can have thousands of lines of code in the CSS panel, but you probably don't need to (I only have 300 on insidethesquare.co 😉 ) If you have multiple pages that need this magic, you can separate the selectors with a comma like this: [mobile-data-section-id:1], [mobile-data-section-id:2], [mobile-data-section-id:3]{display... Check out this article on my site for more info on combining codes and the symbols used in CSS: insidethesquare.co/resources/css-symbols
@@InsideTheSquare Similar question! (ps - your free tutorials have been so valuable thank you!) Q: is it possible to apply this to an original blog post "template" that we make a copy of & add new content into (for efficiency/aesthetic purposes)... will the query code auto-apply to every new blog post? Or is it good ol' copy & paste the query code to the unique page ID every dang time? Totally understandable if need be... just checking to see if there is a universal way to apply this to blog posts.
Hey Forkane Lebdi! You'll need to find some kind of third party program or app to do that, or see if you can make the services feature of Squarespace work for ya 🤷 When you're ready to change the style or look of your Squarespace site (not the way it works) definitely come back to my channel to learn about CSS!
This is a fantastic tutorial! Exactly what I needed for my new site. Question for you though - is there to "label" the codes so that I could easily make edits to it down the road. For example...this group of code is for my Homepage, this group of code is for my About page, etc...things got a little confusing since I have to apply it to all my pages on the website. Thank you!!
Great question! You can totally add little notes to your CSS so you can remember what does what. I have an article about it on my resouces blog: insidethesquare.co/resources/code-notes
Thank you for posting this - and all your videos, you're awesome! Is there a reason I wouldn't be able to see the data section ID? I'm not seeing it with the plug in or when inspecting elements. Potentially useful info: I'm using 7.0. I'm trying to do this on the home page in order to have mobile friendly banner images
This tutorial is specific for version 7.1 but it sounds like you are using an older version of Squarespace that responds to different codes. Check out this article for more info: insidethesquare.co/themes
Hi Becca, What is your recommendation for blog posts? As they are all one section, I cant implement this for my design which has image blocks on the left, and text on the right 😭
I don't recommend making major layout changes for blog posts (it can interfere with the RSS feed) but this tutorial might help, at least for slightly smaller screens: www.insidethesquare.co/squarespace-tutorials/blog-post-width-tablet
@@InsideTheSquare Thank you Becca! I did not consider the RSS feed and used the Block ID to hide/show on mobile/desktop. Thank you for sharing that tutorial. I will explore this option :)
I am not quite sure what you are trying to create but I would love to help! Feel free to submit a tutorial request with more info at insidethesquare.co/suggest-tutorial
I am using an anchor link for a section, so the name of the Squarespace ID is just the anchor link name. How do I adapt the code to work with that name?
I followed the steps it looks right on squarespace editor, but when I go to the mobile site on my phone it shows both the web and mobile version of each section. Is there a way to fix this?
Sometimes phone browsers are lazy and will cache a site you visit often, so it won't bother rechecking the code. Try in an incognito tab or by clearing your browser. if it's still not doing its thing, email me a link: support-at-insidethesquare.co
Hey amazing tutorials, it always shows an error for me, and doesnt hide the sections. is it because my site isnt published yet? Or what could I have missed?
If you're getting an error, there is an issue with a character in your code. Check out some of my top troubleshooting tips here (insidethesquare.co/codehelp) and be sure to grab my free guide on CSS basics at insidethesquare.co/learn
That's a great question Ed but I don't think anyone will be able to give you a definitive answer - devices are changing all the time, and no one can confirm how long older models and older browsers will be compatible with modern sites! 😬 Squarespace uses specific breakpoints, but they don't publically release that info because they do vary in size for different grid layouts, auto sections and specific content blocks. These are the recommended ones that I use in my work: learn.microsoft.com/en-us/windows/apps/design/layout/screen-sizes-and-breakpoints-for-responsive-design
This code still works! A syntax error means there is an incorrect symbol in your code, or that you haven't finished typing it yet. You'll see me get a syntax error until the very last curly bracket is closed. You can usually find out what line /character is causing the error by reading the red text that shows up. If you're still having issues, you can check out my other troubleshooting tips at insidethesquare.co/code-help
This was so helpful! Would the px width size be different if I wanted to also have specific sections for tablets? I'm not sure if mobile sizing would still look good on tablets.
You can target tablet seperately, but definitely consider using a relative value like % or vh/vw. YOu can learn more about the different length values in this article: insidethesquare.co/resources/length-values
Oh my gosh you are such a life saver I swear. This is great. Thank you! Random but do you know a way to slow down fade in and out transitions in a simple slideshow?
That kind of feature isn’t something we can change with CSS, but the official support articles at Squarespace might be of help: support.squarespace.com/
This is such a great question - totally adding it to my tutorial to do list!! In the meantime, this is the code you need. Just a heads up: this wont be visible in the site preview when you're working in squarespace, but test it on a mobile device and you'll see the single column. @media only screen and (max-width: 768px){ .gallery-grid-wrapper{ grid-template-columns: repeat(1, 1fr)!important; } }
"@media screen and..." is a css code that specifies a device size - it's for the browser to understand when to use a code and isn't related to the content of the page. Check out this tutorial for more info on targeting mobile screens; hope that info helps! insidethesquare.co/mobile
Hey Mary! I have something awesome coming out for 7.0 users, so keep an eye out and make sure you're signed up for my mailing list! As far as mobile layouts... I have a tutorial on how to change mobile font size: ruclips.net/video/_h5o_J-Gsqw/видео.html but I would recommend just searching through my channel for the specific things you're looking for, I'm sure there's a tutorial for it!
This is super awesome thank you! Quick question though, I have a rotating banner on my home page, I would love to do this on that as it comes up wrong on the mobile version, can I do this or will the codes get confused with each other?!x
Great question! I'll have to brainstorm on this one; probably possible with some clever CSS. if I am able to create a code for it, I'm sure it will make a great tutorial so stay tuned!
I am not quite sure what you are trying to create but I would love to help! Feel free to submit a code help request with more info here: insidethesquare.co/code-help
Great tutorial! Quick question I have made a slanted header and footer, but on mobile the header is not visualize as slanted. Is there a way to make it also work on mobile? The footer is working. Thanks! :)
I’m not sure why it would do that instead, but I’d be happy to help! Feel free to submit a code help request with more info here: insidethesquare.co/code-help
Hi, Becca. When I use this code for the hero section of my website, the top of the hero section that I want visible on mobile sits behind the header. Any idea how to fix this?
Great question! it depends on the settings you are using but I’d be happy to help you create the perfect code! Submit a code help request with more info: insidethesquare.co/code-help
@@mellamodanielaloera hey Daniela! I’m still working on requests from las year but almost caught up 😅 You can add a margin to the top of your mobile section that is the same size of your mobile header; here is an example: margin-top: 50px;
Does anyone know how to adjust the width for each section? When I apply the code none of my sections disappear like it does in the tutorial. Thanks in advance
I’m not sure why it would do that instead, but I’d be happy to help! Feel free to submit a code help request with more info here: insidethesquare.co/code-help
This isnt working for me.. I'm using an image slider on Squarespace 7.1 and both sections are showing on both Mobile and Desktop... after installing the code and using their unique ID's
@@InsideTheSquare Oh wow that's a fast reply! Here's the code: @media only screen and(min-width:768px) { section[data-section-id="6666bd2abd67f448120f1893"]]{display:none}} @media only screen and (max-width:768px) { section[data-section-id="6716825c3ab35c5e060839ad"]]{display:none}}
Yup - I'm a real live person here, doing my best to help others make the most of the product they signed up for :) You've added double square brackets in your code: ...93"]]{... should be ...93"]{... Fix that for both data section id's and you'll be set!
@@InsideTheSquare Aha! There we go! I didnt even see that little bracket. Thank you for being the fresh pair of eyes on this. All fixed! Still though, this should really be a native feature in SquareSpace.
Hi! I'm a little unsure how to best apply this code. My desktop looks great but mobile is still showing weird 3-blocks of video for my portfolio. Happy to chat more if you are! Thanks
Is there a way to change lb to oz on my item weight? My items are under a lb but i can’t figure out how to write it correctly to be under a lb 🤦🏽♀️😂 since i can’t figure out how to change the weight to oz 😩
Does anyone know how to solve for anchor links in the nav bar after using this method? I followed this tutorial (thank you!) and made my original 6 section site into 12 (first 6 is desktop, last 6 is for mobile) so I can customize the mobile experience as my desktop site design looks wacky on mobile. However, the nav links I have going to specific sections using anchor code doesn't work because there's two destinations per section (one for mobile, one for desktop). For example, in my I have two "About" section (one for mobile and one for desktop) but my nav bar can only link to one of them. Does anyone know how I can set the nav bar link to go to the mobile section on mobile and the desktop section on desktop? Thanks!
Oooh that is a tricky setup! I would recommend creating two different folders in your navigation - one for mobile and one for desktop - and then use CSS media queries to hide the desktop folder on mobile and vice-versa. Feel free to email me a link for help with the hiding the links part after you move your content into the two folders. You can reach me at support-at-insidethesquare.co
Thank you for your wonderful tutorials!!! Just to confirm, to create a centered mobile design vs. a left aligned desktop, I'd have to create duplicate sections and then set separate code for each section?
Great question! This technique is great if you need to change the content, but if all you need to do is change the alignment, then you don't need custom code! Check out this tutorial for more info on alignment: ruclips.net/video/cOvBPxTSNUE/видео.html
once more some basic functionality that is not working in Squarespace, I'm regretting the day I've opted for Squarespace. Anyway only in the footer, the link icon in the text blocks tool bar is disabled so I can't add links. Even if I add a section from the footer templates, with text block containing links in it, I am not able to modify the links because the link icon is nowhere to be seen. Shortcuts doesn't work either. Same in different browser. Link icon for text blocks appears regularly in any other section except footer. And it was working until a few days ago because I've already places a link before. Please this is a basic function. This is really a fucking basic function! Is there a code workaround? Please!
I’m sorry you are so frustrated with Squarespace. I don’t work for Squarespace and I have no control over the program. It sounds like a common function isn’t working for you, and I strongly recommend contacting their support team for help. support.squarespace.com
Here is the code from this tutorial; be sure to change the data section id! @media only screen and(min-width:641px) {[mobile-data-section-id]{display:none}} @media only screen and (max-width:640px) {[desktop-data-section-id]{display:none}} be sure to change the data section id! .. to what? i. dont get it t.t
You have two sections - one that is mobile and a second for desktop. Follow the steps in the video and you’ll see how I use the chrome extension to get the data section ID - those are unique for the sections on your site. Replace the filler text in the example with your own unique id’s.
Interesting! The pixel size is standard so I would leave that part of the code alone. Try checking out the mobile view on an actual phone and not the editor; sometimes the site preview wont display changes.
Syntax error on line 4? I think I copied perfectly but it does say CSS does not apply to cover pages but that is the crucial one I need to be different! Help please
Hi Joe! You will always see a syntax error alert until your code is complete. You can see it in some of my videos! If that doesn't work, feel free to submit a code help request with more info here: insidethesquare.co/code-help
@@InsideTheSquare Thanks so much for getting back to me. As your inbox is full I'm unable to send one. I have had a look and can't see where I have gone wrong!
⚠ IMPORTANT CSS UPDATE ⚠ When logging into Squarespace, if you see the word "Website" at the top of your menu, you are using their new internal navigation!
To edit the CSS of your Squarespace website, click on the word "Website" and scroll to the bottom of the list of pages. Here you'll see "Website Tools" - click on that option and select "Custom CSS" to open the CSS panel and add your code here. For more information, watch this tutorial: ruclips.net/video/euJqHXs_L1M/видео.html
Thanks!
Thank you for your support!
You must be send from heaven, jeeezzzzz! How are you not famous with million subcribers?! The way you explain things so simple and clear, mindblowing! Thank you so much! I am on line 107 with coding my website and it's all codes from your youtube channel. LOVE LOVE LOVE!!!!!!
Wow, thank you so much!! I'm glad you like my style 🥰 And congrats on coding over 100 lines of CSS; that's awesome!! 🥳
I normally design in WordPress but my new client wants a website in Squarespace, a first time for me. Thank you so much for this tutorial! It worked like a charm. You have FOREVER changed my design life!!!
You are so welcome! I'm happy to hear that my work is helping you with yours 🥰
This video needs to be made famous! Great job explaining this and providing a REAL solution.
Victoria! Thank you so much! Your comment just made my day.☺️
Phew! I've been distressed for two days and this video saved me. Thank you!!
You are so welcome! 🤩 Your comment just made my day - thank you so much for letting me know!
I just gained a piece of my life back that I didn't know I had from all the work you just saved me from lol. Amazing as always! THANK YOU!!! 👏🎊
I still use this every single site I build on Squarespace - I can style mobile without having to sacrifice the desktop canvas. I've even made a breakpoint for tablet on one, intricate landing page. So sweet!
That's awesome; I love that you're using this to customize the tablet breakpoint, too!! 🙌
LOVE this tutorial!! It's a game changer and so much easier having this as an option when you really want something on desktop that just doesn't work on mobile :)
Thanks Meagan - I totally agree!!! Such a game changer 🥳
This is by far one of the most helpful AND (at the same time) easiest tutorials I have ever found. You've made my life so much easier and have saved me hundreds of hours of stress and frustration. THANK YOU!!!
You are so welcome! 🤩 Your comment just made my day - thank you so much for letting me know!
Computer says no
You are an angel!! I literally have the tech skills of an average 80 yr old, but my website is an art portfolio so I feel like I NEED things arranged in a certain way. Thank you SO much for explaning this in a way that some one who doesn't actually know what CSS is an aronym for can 1) understand and 2) exicute using the copy-paste code and linked tools you provided!
Sylvia! You are so welcome! 🤩 Your comment just made my day - thank you so much for letting me know!
Thank you, that was great. It was driving me nuts that changes weren't separated. It boggles me there is no way to toggle this inside of squarespace. Oh well, this works wonders!
Yay! So happy I could help😎
An absolute game changer. Really excited to see this is possible as we are considering utilizing Squarespace for my organization!
You are so welcome! I’m happy to hear that my work is helping you with yours! ☺️
Thank you so much for this quick and awesome video! This is EXACTLY what I needed
Your comment just made my day! Glad I can help!❤️
Very clear and concise for a website and code newbie, thank you
You're welcome! I'm glad it was helpful 😊
AMAZING!! Thank you so much, this saved my mind from spiraling haha
You are so welcome! This is one of my favorite code tricks, too 🙌
You are awesome Becca!!! ✨🥰 saves so much time to optimize the mobile view
Thank you - glad you like this trick, too! ☺️
You are amazing! Thank you so much! I've been looking for months for this! You are the Queen of Web design!
Thanks GuaraWoW!! So happy I could help :)
This was the first code I have ever done. Thank you
This is so clutch! Thank you for creating this!
You’re welcome! Happy to help. 😎
Thank you so much for sharing all this knowledge. You are the best & so so helpful!
You are so welcome! 🥰
Still relevant, absolutely love it.
Thank you!
Great tutorial!
Question, when I hide a section, there seems to be a blank space in my vertical layout where the hidden section is stored. This blank space is creating a strange spacer in between my content. How do I correct this? Thank you!
That's really odd 🫤 Display:none removes the section completely so something else is getting in the way. I'd recommend checking to see if you have a border enabled on either one. You can also dig into the source code via inspect tools to find the culprit; best of luck!
Okay! I figured it out by accident! I placed a space between Section and [Section ID]. This caused the issue. @@InsideTheSquare
You're the best, you really should have 100K+ subs
Thank you so much!! 🥰 Hopefully someday...
not working for me for some reason
You might be using a different version of Squarespace than what this video was created for, which means the codes won't work for your site. Check out this article for more info on that: insidethesquare.co/themes
SO helpful!! As always, many many thanks!
This is really really helpful! Thank you so much!!! ❤❤
You're so welcome! ☺️
Can this be done for multiple blocks? Can you put multiple block IDs in the same code? Thanks!
Great question! You can create a swap like this for content blocks as long as you separate the blocks with a comma. A word of caution: when you hide a block, the layout will change, so sometimes a full section swap is easier than modifying every content block inside. 😉
Somehow can't make this work on 7.0 Should it be working?
Nope - 7.0 websites don’t have page sections. Brine index pages and other 7.0 standard pages use different selectors, so this code work. You can learn more about the differences at insidethesquare.co/themes
Super clear, super helpful! Thank you!!
You're welcome! :)
Omg this is amazing!!! Definitely going to overuse this one! Thanks
What happen with Tablet view??
You can set up as many breakpoints as you want! I have more info at insidethesquare.co/mobile
Thank you so much. Going to try now and come back with results
Great; let me know if you run into any trouble!
I am not sure if my comment disappeared but thanks a lot for the tutorials! I managed to get it work however struggle with implementing the code for the custom mobile layout from your other YT video with this one. I would love to use different min width on my desktop version and cannot get the code to work (either nothing happens or the overall scrolling effect disappears)...
To adjust the min width in your desktop you should use the site style setting for spacing. You can adjust the site max width and the site gutter there. Hope that helps!
Merge! Sa-ti dea Dumnezeu sanatate!
Thank you so much for this video, it made my life so much easier :)
You’re welcome! Happy to help. 😎
This is a game changer, thank you! Is it possible to take it one step further and have a mid range for tablets?
Thanks
You're so welcome - thanks for the support!
So I’m theory that code is for one set of mobile/desktop sections on one page with the id.. but what if there’s a few sections like that on a page and on a few different pages? Do you just basically copy and paste and have like 10 of these paste codes in that one css section?
I know it’s your demo site but it’s one thing I noticed in your videos if you did all these tutorials mixing them on one site you can have all these codes in the same main css panel?
You can have thousands of lines of code in the CSS panel, but you probably don't need to (I only have 300 on insidethesquare.co 😉 ) If you have multiple pages that need this magic, you can separate the selectors with a comma like this:
[mobile-data-section-id:1], [mobile-data-section-id:2], [mobile-data-section-id:3]{display...
Check out this article on my site for more info on combining codes and the symbols used in CSS: insidethesquare.co/resources/css-symbols
@@InsideTheSquare Similar question! (ps - your free tutorials have been so valuable thank you!) Q: is it possible to apply this to an original blog post "template" that we make a copy of & add new content into (for efficiency/aesthetic purposes)... will the query code auto-apply to every new blog post? Or is it good ol' copy & paste the query code to the unique page ID every dang time? Totally understandable if need be... just checking to see if there is a universal way to apply this to blog posts.
thank you so much - your videos are immensely helpful!!!
You’re so welcome! I’m happy that my work is helping you with yours ☺️
Hey, thank you for the benificial content. But I wanna know how Can I add an online ordering systeme for a restaurant website ?
Hey Forkane Lebdi! You'll need to find some kind of third party program or app to do that, or see if you can make the services feature of Squarespace work for ya 🤷 When you're ready to change the style or look of your Squarespace site (not the way it works) definitely come back to my channel to learn about CSS!
Squarespace actually purchased a company that handles this. It’s called “Tock”. If you do a trial of squarespace, you may be able to test run.
@@InsideTheSquare Alright, thank you
omg so helpful thank you I never thought of that
Yay! So happy I could help! 🙌🏻
Best tutorial ever
This is a fantastic tutorial! Exactly what I needed for my new site. Question for you though - is there to "label" the codes so that I could easily make edits to it down the road. For example...this group of code is for my Homepage, this group of code is for my About page, etc...things got a little confusing since I have to apply it to all my pages on the website. Thank you!!
Great question! You can totally add little notes to your CSS so you can remember what does what. I have an article about it on my resouces blog: insidethesquare.co/resources/code-notes
@@InsideTheSquare Perfect!! My mobile view is looking ✨✨ thanks to you! Your next cuppa joe is on me ☕
This was incredibly helpful. Thank you so, so much.
Yay! So happy I could help 🥳
Thank you for posting this - and all your videos, you're awesome! Is there a reason I wouldn't be able to see the data section ID? I'm not seeing it with the plug in or when inspecting elements. Potentially useful info: I'm using 7.0. I'm trying to do this on the home page in order to have mobile friendly banner images
This tutorial is specific for version 7.1 but it sounds like you are using an older version of Squarespace that responds to different codes. Check out this article for more info: insidethesquare.co/themes
This is SO helpful. Thank you!
Yay! So happy I could help! 🙌🏻
The second section in the code always seems to interfere with my header is there something I'm missing?
That's super strange - the header isn't a part of this code in anyway! Check out some of my troubleshooting tips here: insidethesquare.co/codehelp
SO SO HELPFUL, thank you!
Yay! So happy I could help! 🙌🏻
Hey, any tip to have 2 different sections for Desktop and iPad?
Check out this tutorial that will teach you how to create an alternate layout for mobile: ruclips.net/video/AQnwhitEqnI/видео.html
Hi Becca,
What is your recommendation for blog posts? As they are all one section, I cant implement this for my design which has image blocks on the left, and text on the right 😭
I don't recommend making major layout changes for blog posts (it can interfere with the RSS feed) but this tutorial might help, at least for slightly smaller screens: www.insidethesquare.co/squarespace-tutorials/blog-post-width-tablet
@@InsideTheSquare Thank you Becca! I did not consider the RSS feed and used the Block ID to hide/show on mobile/desktop. Thank you for sharing that tutorial. I will explore this option :)
Great video, will this code work on a block on a homepage?
I am not quite sure what you are trying to create but I would love to help! Feel free to submit a tutorial request with more info at insidethesquare.co/suggest-tutorial
I am using an anchor link for a section, so the name of the Squarespace ID is just the anchor link name. How do I adapt the code to work with that name?
you can use either - as long as it starts with #
I followed the steps it looks right on squarespace editor, but when I go to the mobile site on my phone it shows both the web and mobile version of each section. Is there a way to fix this?
Sometimes phone browsers are lazy and will cache a site you visit often, so it won't bother rechecking the code. Try in an incognito tab or by clearing your browser. if it's still not doing its thing, email me a link: support-at-insidethesquare.co
Hey amazing tutorials, it always shows an error for me, and doesnt hide the sections. is it because my site isnt published yet? Or what could I have missed?
If you're getting an error, there is an issue with a character in your code. Check out some of my top troubleshooting tips here (insidethesquare.co/codehelp) and be sure to grab my free guide on CSS basics at insidethesquare.co/learn
Thanks for the answer! let me check to see if i can fix it that way@@InsideTheSquare
Is this bulletproof to apply to all mobile devices and vise verca? Will there be any devices that jumps into an akward middle of the 640pixels?
That's a great question Ed but I don't think anyone will be able to give you a definitive answer - devices are changing all the time, and no one can confirm how long older models and older browsers will be compatible with modern sites! 😬
Squarespace uses specific breakpoints, but they don't publically release that info because they do vary in size for different grid layouts, auto sections and specific content blocks.
These are the recommended ones that I use in my work: learn.microsoft.com/en-us/windows/apps/design/layout/screen-sizes-and-breakpoints-for-responsive-design
Im getting a syntax error even though I have it exactly like you do! is squarespace not supporting this anymore?
This code still works! A syntax error means there is an incorrect symbol in your code, or that you haven't finished typing it yet. You'll see me get a syntax error until the very last curly bracket is closed. You can usually find out what line /character is causing the error by reading the red text that shows up. If you're still having issues, you can check out my other troubleshooting tips at insidethesquare.co/code-help
This is fantastic!
Thanks Dale - I thought the same thing when I tried it; I just had to share!! 🥳
This was so helpful! Would the px width size be different if I wanted to also have specific sections for tablets? I'm not sure if mobile sizing would still look good on tablets.
You can target tablet seperately, but definitely consider using a relative value like % or vh/vw. YOu can learn more about the different length values in this article: insidethesquare.co/resources/length-values
Oh my gosh you are such a life saver I swear. This is great. Thank you! Random but do you know a way to slow down fade in and out transitions in a simple slideshow?
That kind of feature isn’t something we can change with CSS, but the official support articles at Squarespace might be of help: support.squarespace.com/
Do you have any code that would get me a gallery with one column on mobile and 3 columns on desktop?
This is such a great question - totally adding it to my tutorial to do list!! In the meantime, this is the code you need. Just a heads up: this wont be visible in the site preview when you're working in squarespace, but test it on a mobile device and you'll see the single column.
@media only screen and (max-width: 768px){
.gallery-grid-wrapper{
grid-template-columns: repeat(1, 1fr)!important;
}
}
OMG, you are the best!
Thank you - so glad you like my work! 🥰
What if I don't have media? Would that change from @media to @text? or how should the code be?
"@media screen and..." is a css code that specifies a device size - it's for the browser to understand when to use a code and isn't related to the content of the page. Check out this tutorial for more info on targeting mobile screens; hope that info helps! insidethesquare.co/mobile
Hey this is so helpful, but I was wondering if there is a similar workflow to achieve this on 7.0? (Brine > Marta) :)
Unfortunately this technique is specific for 7.1, but I'll brainstorm some workarounds for Brine index pages... stay tuned! :)
You are an ANGEL. Thank you so much!
Your comment just made my day - thank you so much! 🥰
hi there!! im building a website in 7.0, is there any way to create a layout specific to mobile using a 7.0 site? thank you!
Hey Mary! I have something awesome coming out for 7.0 users, so keep an eye out and make sure you're signed up for my mailing list!
As far as mobile layouts... I have a tutorial on how to change mobile font size: ruclips.net/video/_h5o_J-Gsqw/видео.html but I would recommend just searching through my channel for the specific things you're looking for, I'm sure there's a tutorial for it!
I don't know about coding but would looooove how to do it on my website. Thank you 🥰
You're welcome! :)
This is super awesome thank you! Quick question though, I have a rotating banner on my home page, I would love to do this on that as it comes up wrong on the mobile version, can I do this or will the codes get confused with each other?!x
Great question! I'll have to brainstorm on this one; probably possible with some clever CSS. if I am able to create a code for it, I'm sure it will make a great tutorial so stay tuned!
Can this be used with more than two sections?
You should be able!
After I use the custom CSS im left with awkward white space. How can i fix this? Any help would be a life saver
I am not quite sure what you are trying to create but I would love to help! Feel free to submit a code help request with more info here: insidethesquare.co/code-help
Thank you so much! You're da best 🥺
You’re welcome! Happy to help. 😎
Great tutorial! Quick question I have made a slanted header and footer, but on mobile the header is not visualize as slanted. Is there a way to make it also work on mobile? The footer is working. Thanks! :)
I’m not sure why it would do that instead, but I’d be happy to help! Feel free to submit a code help request with more info here: insidethesquare.co/code-help
@@InsideTheSquare Will do, thank you!
Hi, Becca. When I use this code for the hero section of my website, the top of the hero section that I want visible on mobile sits behind the header. Any idea how to fix this?
Great question! it depends on the settings you are using but I’d be happy to help you create the perfect code! Submit a code help request with more info: insidethesquare.co/code-help
Did she ever help you with this? She's not taking help requests so wondering what to do.
@@mellamodanielaloera hey Daniela! I’m still working on requests from las year but almost caught up 😅 You can add a margin to the top of your mobile section that is the same size of your mobile header; here is an example:
margin-top: 50px;
You are a genius!
Thank you - glad you like my ideas! :)
Does anyone know how to adjust the width for each section?
When I apply the code none of my sections disappear like it does in the tutorial. Thanks in advance
Check out this tutorial that will teach you how to create an alternate layout for mobile: ruclips.net/video/AQnwhitEqnI/видео.html
You are the best
You are so welcome! 🤩 Your comment just made my day! I will add your request to my tutorial idea list, so stick around!
this isnt working for me...any tips?
I’m not sure why it would do that instead, but I’d be happy to help! Feel free to submit a code help request with more info here: insidethesquare.co/code-help
How do you do this with a block? I tried putting it in the code and getting an error
Hey JE! It's hard to say without seeing your code, but check out my free troubleshooting tips at: insidethesquare.co/code-help
Thank you so much, really appreciate it.
You're very welcome!
Great tips. thank you!
Glad it was helpful! 🙌🏻
This isnt working for me.. I'm using an image slider on Squarespace 7.1 and both sections are showing on both Mobile and Desktop... after installing the code and using their unique ID's
Please share you code here in the comments so I can help.
@@InsideTheSquare Oh wow that's a fast reply! Here's the code:
@media only screen and(min-width:768px) {
section[data-section-id="6666bd2abd67f448120f1893"]]{display:none}}
@media only screen and (max-width:768px) {
section[data-section-id="6716825c3ab35c5e060839ad"]]{display:none}}
Yup - I'm a real live person here, doing my best to help others make the most of the product they signed up for :) You've added double square brackets in your code:
...93"]]{... should be ...93"]{...
Fix that for both data section id's and you'll be set!
@@InsideTheSquare Aha! There we go! I didnt even see that little bracket. Thank you for being the fresh pair of eyes on this.
All fixed!
Still though, this should really be a native feature in SquareSpace.
Hi! I'm a little unsure how to best apply this code. My desktop looks great but mobile is still showing weird 3-blocks of video for my portfolio. Happy to chat more if you are! Thanks
That doesn’t sound right! I would love to help - send me more info at insidethesquare.co/code-help and I’ll hop into your source code and take a look.
DOES THIS WORK FOR WIX TOO?
I have no idea - I don't use wix, but I don't think you can add custom code to a wix site 😬
Is there a way to change lb to oz on my item weight? My items are under a lb but i can’t figure out how to write it correctly to be under a lb 🤦🏽♀️😂 since i can’t figure out how to change the weight to oz 😩
This sounds like a template thing and not a CSS thing. Check out the official Squarespace support articles for more info: support.squarespace.com/
thank you so much for this!!
Yay! So happy I could help! 🙌🏻
Does anyone know how to solve for anchor links in the nav bar after using this method?
I followed this tutorial (thank you!) and made my original 6 section site into 12 (first 6 is desktop, last 6 is for mobile) so I can customize the mobile experience as my desktop site design looks wacky on mobile. However, the nav links I have going to specific sections using anchor code doesn't work because there's two destinations per section (one for mobile, one for desktop). For example, in my I have two "About" section (one for mobile and one for desktop) but my nav bar can only link to one of them.
Does anyone know how I can set the nav bar link to go to the mobile section on mobile and the desktop section on desktop? Thanks!
Oooh that is a tricky setup! I would recommend creating two different folders in your navigation - one for mobile and one for desktop - and then use CSS media queries to hide the desktop folder on mobile and vice-versa. Feel free to email me a link for help with the hiding the links part after you move your content into the two folders. You can reach me at support-at-insidethesquare.co
bro i love you thanks
Yay - so happy my tutorials are helping you rock your Squarespace site 🥳
THANK YOU SO MUCH OMG
You are so welcome! I love this workaround 🙌
thank you, thank you, thank you!
You are so welcome! This is one of my favorite time saving tricks 😎
Awesome!!
Right?! This code trick was too cool not to share! 😎
Thank you for your wonderful tutorials!!! Just to confirm, to create a centered mobile design vs. a left aligned desktop, I'd have to create duplicate sections and then set separate code for each section?
Great question! This technique is great if you need to change the content, but if all you need to do is change the alignment, then you don't need custom code! Check out this tutorial for more info on alignment: ruclips.net/video/cOvBPxTSNUE/видео.html
thank you so so much
You're welcome! 💕
Brilliant
Thanks - glad you liked this workaround! :)
once more some basic functionality that is not working in Squarespace, I'm regretting the day I've opted for Squarespace.
Anyway only in the footer, the link icon in the text blocks tool bar is disabled so I can't add links.
Even if I add a section from the footer templates, with text block containing links in it, I am not able to modify the links because the link icon is nowhere to be seen. Shortcuts doesn't work either.
Same in different browser.
Link icon for text blocks appears regularly in any other section except footer.
And it was working until a few days ago because I've already places a link before.
Please this is a basic function. This is really a fucking basic function!
Is there a code workaround?
Please!
I’m sorry you are so frustrated with Squarespace. I don’t work for Squarespace and I have no control over the program. It sounds like a common function isn’t working for you, and I strongly recommend contacting their support team for help. support.squarespace.com
Trying to get it working but using the chrome extension i got two identical page id's..? Donkey here ;)
You'll want to use a page section id - the one that starts with section[data-section-id] and not #collection. Hope that info helps!
This moved my gallery underneath my header for some reason. :/
That doesn’t sound right! I would love to help - send me more info at insidethesquare.co/code-help and I’ll hop into your source code and take a look.
Here is the code from this tutorial; be sure to change the data section id!
@media only screen and(min-width:641px) {[mobile-data-section-id]{display:none}}
@media only screen and (max-width:640px) {[desktop-data-section-id]{display:none}}
be sure to change the data section id! .. to what? i. dont get it t.t
You have two sections - one that is mobile and a second for desktop. Follow the steps in the video and you’ll see how I use the chrome extension to get the data section ID - those are unique for the sections on your site. Replace the filler text in the example with your own unique id’s.
whatt if when i load mobile view its still showing the desktop version , do i need to adjust the pixel size????
Interesting! The pixel size is standard so I would leave that part of the code alone. Try checking out the mobile view on an actual phone and not the editor; sometimes the site preview wont display changes.
@@InsideTheSquare So i actually ended up switched the pixel size for desktop from 640 to 635 and that worked for me!
Syntax error on line 4? I think I copied perfectly but it does say CSS does not apply to cover pages but that is the crucial one I need to be different! Help please
Hi Joe! You will always see a syntax error alert until your code is complete. You can see it in some of my videos! If that doesn't work, feel free to submit a code help request with more info here: insidethesquare.co/code-help
@@InsideTheSquare Thanks so much for getting back to me. As your inbox is full I'm unable to send one. I have had a look and can't see where I have gone wrong!