A user seeks to add background color highlighting to specific text portions within Dawn theme’s image-with-text section. The issue affects both homepage and product pages.
Initial Solutions Attempted:
Adding CSS via theme.liquid file (worked on homepage but failed on product pages)
Modifying theme.css/base.css with template-specific selectors (unsuccessful)
Working Solution:
Target specific paragraph elements using nth-child selectors:
This CSS targets the 2nd and 3rd paragraph elements within the image-with-text component, applying the desired background color with proper spacing. The solution successfully highlights only the intended text portions rather than entire blocks.
Status: Resolved with the nth-child approach.
Summarized with AI on November 3.
AI used: claude-sonnet-4-5-20250929.
Been trying to add a background color to a text in dawn theme, but hasnt been able to really find any good answers. Is there anyone who might know how to do this? Got an image with text section that i want to add it to, and its just a part of the text i want to highlight with background color. See image below for explanation: