Change header text color on mobile (Dawn Theme)

Topic summary

Goal: change banner carousel header and subtext colors on mobile only in the Dawn theme to improve readability.

Proposed fix: add a CSS media query in assets > base.css targeting mobile screens (max-width: 767px). The code sets mobile-only colors for:

  • .banner__heading { color: #006400 !important; }
  • .banner__text span { color: #171353 !important; }
    Explanation: a media query applies styles only on small screens, preventing desktop styles from changing.

Outcome so far:

  • Original poster confirmed the solution helped and expressed thanks.
  • A later participant reported that only the heading color changed; the subtext color did not update and asked for a fix.

Notes:

  • Images were shared to illustrate readability differences between desktop and mobile.

Status: partially resolved. The media-query approach works for the header and reportedly for the OP; subtext styling remains unresolved for another user (potential selector differences). Discussion appears open.

Summarized with AI on January 15. AI used: gpt-5.

I’d like to change the color of the header text and subtext on the banner carousel on mobile if possible. I was able to edit it, but the colors apply to both desktop and mobile. On desktop the colors look fine, but it is unfortunately unreadable on mobile.

It looks great on the desktop version, but it is currently rather difficult to read on mobile as you can see in the image below, with a comparison image on desktop.

Is there a way I can just adjust the text for mobile view using the Dawn theme?

Thank you!!

Hello @theteadrawer

Please use below code on assets → base.css at the bottom to change colors of text on banner only for mobile

@media screen and (max-width: 767px){
.banner__heading {
color: #006400 !important;
}

.banner__text span {
color: #171353 !important;
}
}

1 Like

Thank you so much for your help!

it only worked for the heading text can you fix pls thanks