Collection List Images in Dawn theme are only clickable on part of image

Topic summary

Main issue: In the Shopify Dawn theme, collection list images were only clickable in a small central area; the goal was to make the entire image (card) link to the collection page.

Key attempts and outcomes:

  • Code was suggested to add in theme.liquid (before ). It partially worked for one list, then an update caused new issues: clicks only in the center and product titles overlapping images.
  • A working approach was shared: modify card-collection.liquid to wrap the entire card (card-wrapper, including image and text) in a single anchor tag linking to the collection URL, then adjust CSS to preserve layout and hover effects. This resolved the original poster’s issue.

Latest development:

  • Another participant applied code and achieved full-card clickability but their collection titles moved to the top of the image. They shared screenshots and a store link, requesting guidance to fix the layout.

Status:

  • Original case appears resolved with the full-card anchor approach.
  • Thread remains open due to a new layout regression (title positioning) seeking CSS/markup adjustments.

Technical notes:

  • Dawn is Shopify’s default theme; “collection list” is a homepage section of collection cards.
  • theme.liquid and card-collection.liquid are theme files.
  • Wrapping the card in an anchor tag makes the entire card clickable.

Media: Screenshots are central to understanding the title position issue.

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

Hi,

I have collection lists on the homepage of the Dawn theme that are clickable, but only on a small part of the image. The customer would have to know to click in the very middle of the image, otherwise if you click anywhere else on the image nothing happens.

Is there a way that I can make the entire image clickable to the collection page?

1 Like

Hi @KimberliMae

Could you share your store link to check?

Hi @KimberliMae

Can you please provide your store URL and password as well if applicable, so that I can provide you solution that can work for your store.

Best regards

Sahil

Hello,

My store is https://aerimae.com

My store is https://aerimae.com

Please add this code to your theme.liquid file before tag


This worked for one of my collection lists, but not for the other one. Is there a way to make it so all collection card images are clickable? Thanks!!

Hi, if you want to make it works for all then please update code to this


Hmm, now none of the Collection Images are clickable (except for the very middle part where there appears to be an invisible button), and all the product titles are on top of the product images on the home page and in collection pages.

So I plugged the code into Chatbot GPT and the suggestion that it provided worked. I am posting here for anyone else who may be looking for a similar solution.

The following is pasted from ChatbotGPT 4.0:

The card-collection.liquid snippet you provided already contains the necessary structure to make the collection titles clickable. The tags are already in place around the collection titles, with their href attributes correctly pointing to the collection URLs.

If you want to make the entire card clickable, not just the title, you need to adjust the structure slightly. Here’s a suggested modification:

  1. Wrap the Entire Card in an Anchor Tag: You can modify the snippet to wrap the entire card content (including the image and text) in an anchor tag.

    The beginning of your modified code would look something like this:

{%- if card_collection != blank -%}
  
{%- endif -%}

After would look like this:


{%- if card_collection != blank -%}
  
{%- endif -%}
  • Adjust CSS for New Structure:

    • You might need to adjust your CSS to ensure the layout remains consistent after this change. Specifically, you’ll want to ensure that the a tag doesn’t disrupt the layout and that the hover and click effects are correctly applied.
    • You can add styles to .full-width-link (the class added to the anchor tag) to handle any needed styling adjustments.
  • Test Your Changes:

    • After making these changes, save the file.
    • Test the functionality in your store’s front end to ensure that the entire card is clickable and leads to the respective collection page.

Remember, modifying theme code can be complex, and it’s always recommended to back up your theme before making any changes. If you’re not comfortable with these changes, consider reaching out to a Shopify expert or developer for assistance.

Awesome.

Hi @Dan-From-Ryviu , I tried this code and it worked, but it moved my collection list titles to the top of the image.

This is how it should look:

This is how it looks:

Please help me fix this.

My link is: https://8ae3b9-27.myshopify.com/

Thanks in advance.