Hello again!
I just finished a couple of pages with rich text (large header) but came across a problem.
The text itself is fine on mobile, but the header is too big and stretches over two or even three lines.
I googled for solutions first and came across those two:
https://community.shopify.com/c/shopify-design/how-to-reduce-the-size-of-the-rich-text-header-on-mobile-in-dawn/m-p/1548056
https://community.shopify.com/c/shopify-design/how-to-change-size-of-a-rich-text-mobile-version-dawn-theme/m-p/1815316
Unfortunately none of these work.
My section-rich-text.css is almost default, except for this line at the bottom:
.isolate .rich-text__blocks {
width: 100% !important;
max-width: calc(100% - 10rem);
}
After finding the above mentioned solutions, I tried adding this:
@media (max-width: 749px) {
.rich-text__blocks .h1 {
font-size: 6px !important;
}
}
But as I said, it didn’t work. I also tried adding it above the other added block of code instead of below, but that didn’t do the trick either.
I should mention that the pages in question do have a custom css I added in the theme editor, maybe that is the issue? It’s simply:
h2 {
text-align: center;
}
If that’s causing the issue, how do I combine these two?
And if not, what else could be the problem?
Thank you in advance!
