Custom text block only on Refund Policy page

Topic summary

Goal: show a custom text block only on the Refund Policy page (Dawn v15.0.2); current CSS displays it on all policy pages. Also requested ability to bold/underline specific words.

Steps taken:

  • Helper asked for the store URL, then instructed adding Liquid variables near the in theme.liquid to expose identifiers for targeting: {{ page.handle }} and {{ template.name }}.
  • After the merchant added this, the helper didn’t see it reflected, requested collaborator access, and then edit-code permission.

Outcome:

  • Helper reports the issue is fixed on the live theme and shared a policy-page URL for verification. The exact implementation/CSS was not posted publicly; solution delivered via collaborator access/DM.

Technical note:

  • Exposing page.handle (page slug) and template.name (template identifier) enables writing targeted CSS/JS so the banner appears only on a specific policy page (e.g., Refund Policy) rather than all elements with .shopify-policy__container.

Unresolved/unspecified:

  • No public details on how bold/underline styling of words was implemented.

Status: resolved for page-specific display; final code shared privately. Images and code snippets were central to the solution.

Summarized with AI on December 16. AI used: gpt-5.

Strange, I have the code inside. I’ll send you the collab code by DM.