Shopify themes, liquid, logos, and UX
How can I change the hero text color on Dawn? Right now it's a light background with white text - and is not legible. Is there a way to change the font to black? And to add a transparent box so it pops while still being able to see the image behind it?
Hi @sunshinepup,
to change the color of the heading (you need to find the relevant class), you can create a custom class in the base.css file and then add this class to the corresponding element in the code.
If using Dawn theme, it should work as follows:
In image-banner.liquid file:
<h2 class="banner__heading YOURCLASS {% if block.settings.heading_size == 'medium' %}h1{% else %}h0{% endif %}" {{ block.shopify_attributes }}>
<span>{{ block.settings.heading | escape }}</span>
</h2>
In base.css file:
.YOURCLASS {
color: xxxxx;
}
User | RANK |
---|---|
234 | |
158 | |
61 | |
55 | |
46 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023