Changing heading size to be separate on mobile and desktop on Dawn theme

Topic summary

Main issue: Make homepage heading size and layout different on mobile vs desktop in Dawn without one change affecting the other.

Key steps and solutions:

  • Early CSS suggestions targeted logo/padding on small screens but didn’t change the banner heading size.
  • Working fix for mobile: add a CSS media query for small screens (@media max-width: 767px) setting .banner__heading { font-size: 24px !important; } and adjusting button heights. This resolved the oversized mobile heading.

Follow-up and positioning:

  • Request to move the banner heading/button to the top on mobile; later, mobile layout was fixed via external code but it affected desktop.
  • Suggested desktop-only fix: use @media (min-width: 992px) to adjust .banner__content .banner__box { padding-top: 0 !important; } and fine-tune the padding value as needed.

Context:

  • Store was password-protected, limiting direct verification; screenshots were provided but not essential to the solution.

Status:

  • Mobile font-size issue resolved. Desktop positioning change proposed; awaiting confirmation, so the thread appears partially resolved.

Concepts:

  • CSS media queries: rules that apply styles only at specified screen widths, enabling independent mobile and desktop styling.
Summarized with AI on January 31. AI used: gpt-5.

Hey guys,

I was wondering how I’d be able to change the heading size on my front page here on mobile to be different from the desktop. It seems that the size on the desktop reflects onto the mobile site and I when I go to the mobile view and change the size it changes on the desktop as well. How do I make it so that they’re independent from each other? It looks way too large on the mobile site but looks fine on the desktop.

My store link is https://ourodyssey.co/

Hi @dominnows ,

This is Richard from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/base.css->paste below code at the TOP of the file:

@media screen and (max-width: 767px) {
    .header__heading-link {
        padding: 0 !important;
    }
    .header__heading-logo {
        width: 250px;
        height: 100px;
        object-fit: cover;
    }
}

I hope it would help you
Best regards,

Richard | PageFly

Hi @PageFly-Richard ,

Thanks for replying to me so quickly! I don’t think that code did anything but let me know if I did something wrong. I have a screenshot attached of the code added to the theme.

Hi @dominnows ,

You can try use below code in base.css file:

@media screen and (max-width: 767px) {
    .header__heading-link {
        padding: 0 !important;
    }
    .header__heading-logo {
        width: 250px !important;
        max-width: 200px !important;
        height: 75px !important;
        object-fit: cover !important;
    }
}

I hope it would help you
Best regards,

Richard | PageFly

Hi @PageFly-Richard ,

That still doesn’t really work. My heading for where it says “PERSEVERE COLLECTION” with the shop button is still way too large. I’m trying to get that to fit more closely to how it looks on the desktop.

1 Like

Hi @dominnows ,

You can try below code:

@media screen and (max-width: 767px) {
    .banner__heading {
        font-size: 24px !important;
    }
    .banner__buttons a {
        max-height: 40px !important;
        min-height: 40px !important;
    }
}

I hope it would help you
Best regards,

Richard | PageFly

Thank you @PageFly-Richard for this solution! You’re the best.

Hi @PageFly-Richard ,

Do you happen to know how I can move the banner heading and button to the top of my image on mobile like how I have it on my desktop view?

Hi @dominnows ,

Sorry for the late reply.

I currently check your website has a password page, so I can’t give you the exact solution.
Can you share the password so I can check it?

Thanks you!

PW: persevere.

I’ve got the mobile layout fixed with a code someone provided me with. However it has affected my desktop view, how do I make it so that they are independent from each other?

Hi @dominnows ,

I checked it seems on mobile you have already adjusted, right?
On the desktop if you want to adjust to the top, you can add the code below to the file base.css:

@media screen and (min-width: 992px) {
    .banner__content .banner__box {
        padding-top: 0 !important;
    }
}

NOTE: you can increase the padding-top value to match your website

I hope it would help you
Best regards,

Richard | PageFly