Thanks in advance!
I am looking to change the font weight and size for my rich text heading only for mobile. Example shown below.
password: dc
A user wants to modify the font weight and size of rich text headings specifically for mobile devices. They provided a screenshot showing the desired changes.
Solution provided:
</body> tagCSS approach:
The solution uses a media query targeting screens with max-width of 767px (mobile devices). The code targets the rich text heading element (h2.rich-text__heading) and applies:
!important flags to ensure the styles override existing CSSThe responder marked this as an accepted solution and requested feedback on whether it resolved the issue.
Thanks in advance!
I am looking to change the font weight and size for my rich text heading only for mobile. Example shown below.
password: dc
Hello @MMast
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.