Goal: Change the top-left logo’s color on every page refresh, but only on collection pages.
Update: A responder advises that changing the color of the logo’s strokes isn’t feasible because the logo is already black (implying it’s not easily recolorable via CSS/SVG stroke edits).
Workaround offered:
Limit styling to the collection template using a Liquid condition in theme.liquid (placed before the tag).
Apply CSS to change the logo’s background color (example shown with green) rather than altering the logo’s stroke color.
A screenshot link demonstrates the result.
Scope/Technical notes:
The provided snippet targets the logo link element and applies a background color only on collection pages.
This approach does not implement per-refresh color changes; it sets a static background color.
Status: No confirmation from the original poster. The request for a randomized color on each refresh remains unresolved; only a static background color workaround has been suggested.
Summarized with AI on December 14.
AI used: gpt-5.