Fearless Posted January 29 Share Posted January 29 Hello squarespace forum friends! I have been searching the forum for days and trying the code that's been suggested but I just can't seem to make the HOME page header font size h2 (4.2rem) on the mobile and h1 (6.5rem) size on desktop. https://www.fearlesscreative.agency Thanks in advance! Link to comment
Fearless Posted January 31 Author Share Posted January 31 this is the code I'm using: @media screen and (max-width:640px) {h1 {font-size:4.2rem!important} } Link to comment
ChristinaDean Posted January 31 Share Posted January 31 Can you share how to adjust the font size for one specific block so that it's smaller on mobile? It's an h2 heading. Link to comment
melody495 Posted January 31 Share Posted January 31 (edited) On 1/29/2024 at 4:48 PM, Fearless said: I have been searching the forum for days and trying the code that's been suggested but I just can't seem to make the HOME page header font size h2 (4.2rem) on the mobile and h1 (6.5rem) size on desktop. Hi, you mean this text in the screenshot? The code you are using is targeting h1. The text in your hero section is h2. 3 hours ago, Fearless said: this is the code I'm using: @media screen and (max-width:640px) {h1 {font-size:4.2rem!important} } Edited January 31 by melody495 -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) Link to comment
Fearless Posted January 31 Author Share Posted January 31 Hi Melody, Thanks for getting back. Yes it's currently h2 on desktop to make it look okay on mobile. What we like is to make it h1 on desktop and h2 on mobile. Link to comment
CassAggett Posted February 1 Share Posted February 1 6 hours ago, Fearless said: Hi Melody, Thanks for getting back. Yes it's currently h2 on desktop to make it look okay on mobile. What we like is to make it h1 on desktop and h2 on mobile. You'll need to change the text back to H1 (that's better for SEO as the page heading anyway), then the code you're using will work and you can adjust to the size to what you want it to be on mobile. If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆 Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business. WEBSITE • INSTAGRAM Link to comment
Solution Fearless Posted February 1 Author Solution Share Posted February 1 Thanks, Cass. So I would apply this code in the mobile view? I feel like I have done that several times and it hasn't worked. @media screen and (max-width:640px) {h1 {font-size:4.2rem!important} } Sorry for these remedial questions -- I'm just getting started. Link to comment
Fearless Posted February 1 Author Share Posted February 1 Thanks all! I was able to figure it out. I actually just needed to make the font even smaller than h2. Big learning curve! 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