Adding variant category title

Topic summary

Need to display the variant category name (e.g., “Size” or “Colour”) on product pages, not the selected option value. Using {{ variant.title }} only outputs option values like “Small/Medium/Large”. Asking if there’s a Liquid variable or method to output the option/variant label itself (the parent title) instead of the individual variant titles. No solution or follow-up provided yet; question remains open.

Summarized with AI on February 26. AI used: gpt-5.2.

Hi all, I’ve got a few products that have different variants - i.e. Colour, Size, etc.

I’m trying to output the parent(?) variant title using - {{ variant.title }} but that’s only outputting the variant options themselves i.e. Small, Medium, Large for Size. Is there a way to output the “Size” title and not the individual variant titles.

Sorry if that’s confusing!