Change text on only one site

Topic summary

Goal: Make text on the catalog page (Shopify collection page) appear bold without affecting other pages.

Approach proposed: Edit theme.liquid and wrap page-specific CSS in a Liquid conditional that only loads on the collection template.

  • Initial code used “{% end %}”, causing the error: Liquid syntax error: ‘end’ is not a valid delimiter for if tags. Use “{% endif %}”.
  • Corrected snippet: “{% if template.name == ‘collection’ %} … {% endif %}” placed above . This targets only collection pages.

Key concept: Liquid is Shopify’s templating language; “template.name == ‘collection’” identifies catalog/collection pages so styles inside the block apply only there.

Status/Outcome:

  • Syntax issue resolved; user confirmed the fix works.
  • No actual CSS to make text bold was provided (the block is empty). The intent is to add bold-specific CSS inside the conditional.

Follow-up question: The user wants an exception so the rich text at the top is not bold, while other catalog text is.

  • The reply repeated the same conditional (with a minor typo) and didn’t provide selectors to exclude the rich text.

Open items: Specific CSS selectors to apply bold to desired elements and exclude the top rich text remain unanswered.

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

Hi, how do i make the text for my catalog page only, thicker. As in I want it to be bold. It all seems so thin and small. Picture:

Website: hostfashion.myshopify.com
Code: UDEIMARKEN

Hi @HOST_1 ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:

{% if template.name == 'collection' %}

{% end %}

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

hi, thank you for you answer. i tried to copy your code above head tag, but it gave me following error:

  • Liquid syntax error (line 9): ‘end’ is not a valid delimiter for if tags. use endif

@HOST_1 Oh sorry, This is new code:

{% if template.name == 'collection' %}

{% endif %}
2 Likes

perfect, thank you :grin:

1 Like

i do have another question though. can I make an exception for this page? like I don’t want the rich text on the top to be bold, only everything but that. Like I mean this text:

Please welcome our first collection:

Silver Equinox.

With the consideration of the cold autumn breeze, we introduce heavy-weight garments, that will keep you warm the whole season round, and even so, keep you fashionable.

1 Like

Hi @HOST_1 , Replace old code to this new code:

{% if template.name == 'collection' %}

{% endif %}

Hope this can help you :heart_eyes:

2 Likes