GenuineContent Posted January 11, 2020 Posted January 11, 2020 So I am building a website using the Impact template in the Brine family. I kept much of the original formatting, as it worked well for my client, including the large block header 1 format. However, one of my banner page titles has a word ("recreational") that is too long for the mobile view and getting cut off or wrapped mid-word (I included a screenshot). How do I change the font-size only on this page, and only for the mobile view? I don't want the font-size to change on the full-screen size; and I want the other mobile-view page title font-sizes to remain the same. Site: Recreational Therapy page
Solution christyprice Posted January 11, 2020 Solution Posted January 11, 2020 You'd want to target that specific block for mobile only in Design > Custom CSS. Try this and play around with the font size. @media screen and (max-width: 640px) { #block-b804c57f124fbfbe2d7f { font-size: 20px !important; } } Jim, GenuineContent, djm and 1 other 4 christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
GenuineContent Posted January 11, 2020 Author Posted January 11, 2020 thank you so much! I didn't realize you could target blocks. Super helpful. christyprice 1
JonJonJon Posted January 11, 2020 Posted January 11, 2020 (edited) how do you find the block IDs? I can only see YUI ID 😞 edit: nevermind, figured it out. Also came across a great chrome extension that just shows you. Chrome Store: "Squarespace Collection/Block Identifier" Edited January 11, 2020 by JonJonJon
christyprice Posted January 11, 2020 Posted January 11, 2020 @JonJonJon that's the extension I use and recommend. JonJonJon 1 christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
Guest Posted January 13, 2020 Posted January 13, 2020 I have the same issue and am a rookie when it comes to coding. Do I use the exact same code and switch out just the block ID for the specific section of my site? www.boldinkstrategy.com
christyprice Posted January 13, 2020 Posted January 13, 2020 (edited) @lindseyturner, exactly. You can use the Chrome extension Squarespace Collection/Block Identifier that JonJonJon mentioned above to easily discover and copy the block-id. Then you can change the font size from 20 to whatever works for you. Edited January 13, 2020 by christyprice christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
djm Posted April 17, 2020 Posted April 17, 2020 Thanks for your answers here @christyprice Is there a way to change all, for example, H3 Headings to display at smaller size on mobile only? I have the same problem as abovem on nearly all H3 headings. Would be a ton of code to target every block individually... Thanks,Dave
christyprice Posted April 17, 2020 Posted April 17, 2020 (edited) Hi @djm, yes you can target all h3 on mobile. @media only screen and (max-width: 991px) { h3 { font-size: 12px !important; } } You can change around the screen size max-width and the font size until you get the result you want. Edited April 17, 2020 by christyprice tuanphan and djm 2 christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
djm Posted April 21, 2020 Posted April 21, 2020 Thanks so much @christyprice. Works great. christyprice 1
AFisk Posted May 5, 2020 Posted May 5, 2020 On 4/17/2020 at 5:02 PM, christyprice said: Hi @djm, yes you can target all h3 on mobile. @media only screen and (max-width: 991px) { h3 { font-size: 12px !important; } } You can change around the screen size max-width and the font size until you get the result you want. So if I wanted to increase the font size for Heading 1 in only the desktop it would be similar to this though I'd change h3 to h1 and id change @media to what? @desktop? Would it be possible to dramatically change the font size in Heading 1 to something massive? As you'll see in my site www.adrianfisk.com I've only achieved huge font through overlaying onto the image in photoshop and then uploading onto my SS site. However this then means the mobile cannot fit the word in and it looks poor.
tuanphan Posted May 5, 2020 Posted May 5, 2020 23 minutes ago, AFisk said: So if I wanted to increase the font size for Heading 1 in only the desktop it would be similar to this though I'd change h3 to h1 and id change @media to what? @desktop? Would it be possible to dramatically change the font size in Heading 1 to something massive? As you'll see in my site www.adrianfisk.com I've only achieved huge font through overlaying onto the image in photoshop and then uploading onto my SS site. However this then means the mobile cannot fit the word in and it looks poor. @media screen and (min-width:992px) { h1 { font-size: 20px; } } 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!)
AFisk Posted May 5, 2020 Posted May 5, 2020 (edited) 54 minutes ago, tuanphan said: @media screen and (min-width:992px) { h1 { font-size: 20px; } } Thanks Tuanphan - However it hasnt changed the size of the Heading 1. If you see this example page here. I want the font 'FILM' To appear super large. That font is currently in Heading 1. Is there CSS to change this to something like I built in photoshop like the larger example Edited May 5, 2020 by AFisk
tuanphan Posted May 5, 2020 Posted May 5, 2020 4 minutes ago, AFisk said: Thanks Tuanphan - However it hasnt changed the size of the Heading 1. If you see this example page here. I want the font 'FILM' To appear super large. That font is currently in Heading 1. Is there CSS to change this? FILM, under image? It is h4 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!)
AFisk Posted May 5, 2020 Posted May 5, 2020 7 minutes ago, tuanphan said: FILM, under image? It is h4 Ok so Ive entered this code. However the font size is not changing for FILM @media screen and (min-width:992px) { h4 { font-size: 100px; } }
tuanphan Posted May 5, 2020 Posted May 5, 2020 add this @media screen and (min-width:992px) { h1 { font-size: 200px !important; } } 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!)
AFisk Posted May 5, 2020 Posted May 5, 2020 2 minutes ago, tuanphan said: add this @media screen and (min-width:992px) { h1 { font-size: 200px !important; } } Genius!! You nailed it. and if I wanted to marginally increase it on the mobile screen I'd enter this @media only screen and (max-width: 991px) { h3 { font-size: 12px !important; } }
AFisk Posted May 5, 2020 Posted May 5, 2020 4 minutes ago, AFisk said: Genius!! You nailed it. and if I wanted to marginally increase it on the mobile screen I'd enter this @media only screen and (max-width: 991px) { h3 { font-size: 12px !important; } } Except I'd put h1 and 25px
jondemeo Posted July 31, 2020 Posted July 31, 2020 (edited) So the code works if I define the header but not if I use the block ID. Any suggestions? I am using a collection and grabbing the block ID inside of it. Does that effect it? @christyprice Edited July 31, 2020 by jondemeo
christyprice Posted July 31, 2020 Posted July 31, 2020 (edited) @jondemeo make sure you are targeting the correct form of text: h1, h2, etc. Selecting the block-ID should work. If you want to share a link, perhaps we can help with more specific advice. Edited July 31, 2020 by christyprice jondemeo 1 christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
jondemeo Posted July 31, 2020 Posted July 31, 2020 (edited) https://lobster-decagon-hpzf.squarespace.com/ Password: missionchurch I am trying to change the font size for the large text parts on the homepage (for mobile only). I want the first text part "launching" to remain the same though. @christyprice Edited July 31, 2020 by jondemeo
christyprice Posted July 31, 2020 Posted July 31, 2020 (edited) @jondemeo, try adding this to Design > Custom CSS @media only screen and (max-width: 991px) { h1 { font-size: 14px !important; } } then just change that font-size number to the size that works for you This targets all the h1 on mobile, so should be good. If you only want it for the homepage, then try this: @media only screen and (max-width: 991px) { #collection-5f242e14448b5e0c62fa6f55 h1 { font-size: 14px !important; } } Edited July 31, 2020 by christyprice christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
jondemeo Posted July 31, 2020 Posted July 31, 2020 (edited) @christyprice Thank you for this and it works. My issue is the first part that says "Launching in Topeka, KS in late 2020." I want to remain the same size yet it is h1. I want to target certain blocks to minimize their size on that same page. I am using the below code but replacing it with my block code and it is not working. @media screen and (max-width: 640px) { #block-b804c57f124fbfbe2d7f { font-size: 20px !important; } } Edited July 31, 2020 by jondemeo
christyprice Posted July 31, 2020 Posted July 31, 2020 (edited) You need to add h1 after the block-id, just like it is after the collection-id in the code above Edited July 31, 2020 by christyprice christyprice.com 🇺🇸 Austin, TX US 🐾 ✅ Get my Starter Template for Web Designers 🎬 Watch 7 Ways to Save Time as a Squarespace Designer from Circle Day 2024 🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
Asiya Posted August 19, 2020 Posted August 19, 2020 On 1/12/2020 at 12:50 AM, christyprice said: You'd want to target that specific block for mobile only in Design > Custom CSS. Try this and play around with the font size. @media screen and (max-width: 640px) { #block-b804c57f124fbfbe2d7f { font-size: 20px !important; } } Hi, @christyprice I need help with my mobile banner. its cropping on mobile. please help. here's the url:https://www.patientorator.com/ Thanks in advance!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment