Hello, I am having an issue with my collection list. I set the display for .card__heading to none because I did not want the collection name to display below the image, because the image has the name in it. Doing this has caused the A tag on the card to not cover the entire card, so you must click the top half of the card for it to actually work (shown in screenshot below). I want to make the entire card clickable. I have tried wrapping it in an A tag, but for some strange reason, the A tag is unable to wrap around the card.
My site: website - scroll about halfway down to find the collection list. Dawn Theme.
To make the entire card clickable in your collection list, you can modify the code of your theme. Here’s a general approach you can take:
-
In your Shopify admin, go to “Online Store” > “Themes”.
-
Find the Dawn theme you are using and click on the “Actions” dropdown menu.
-
Select “Edit code” from the dropdown menu to access the theme’s code editor.
-
In the code editor, locate the file that contains the code for rendering the collection list. It could be something like collection-list.liquid
or collection-grid-item.liquid
.
-
Look for the HTML structure that represents each collection item in the list. It might be wrapped in a <div>
element with a class like .collection-item
or .collection-card
.
-
Find the code responsible for rendering the card’s heading or collection name. This code might include a <h2>
or <h3>
element with a class like .card__heading
or .collection-name
.
-
Remove the display: none;
property from the CSS rules targeting the card’s heading element.
.card__heading {
display: none;
}
I want the card heading to be hidden though. I don’t want it shown.