Goal: Make the entire product image clickable in a Shopify Dawn theme after moving product titles over the images with custom CSS.
Context: Overlaying the title made only the title text clickable, not the whole image area.
Key attempts:
Initial CSS suggested expanding the title container (.card__heading) and its link (.full-unstyled-link) to fill the card. It didn’t work initially; a follow-up noted the code wasn’t visible and advised adding it at the end of base.css.
Working solution provided: Set .product-grid .card__heading as an absolute, full-size overlay (width/height 100%, top: 0) and center its content with flex; include a slight vertical offset (transform) to position the text. This made the entire image area lead to the product page.
An alternative variant used padding-top to adjust vertical positioning while also making the overlay full height/width.
Outcome: Resolved. OP and another participant confirmed the GemPages CSS approach works. Actionable note: place the CSS at the end of base.css to ensure it applies.
I used some custom CSS to display the product titles on top of the product images.
However, this has made it so that people can only access the product page by clicking on the title of the product. I would like it so that clicking anywhere on the product image, they will also be lead to the product page.