Master Your Shopify Craft Theme: Make Image Banners Fully Clickable
As a Shopify migration expert at Shopping Cart Mover, we often see merchants striving to optimize every element of their online store for maximum engagement and conversion. One common request, particularly for users of the elegant Shopify Craft theme, is to make the entire image banner clickable, rather than just a small button within it. This seemingly simple enhancement can significantly improve user experience and drive traffic to key product pages or collections.
Recently, a fantastic discussion unfolded in the Shopify Community forum, spearheaded by A_Fern, that perfectly encapsulated this challenge. The core issue? Attempting to wrap the entire banner or just the image in an tag often leads to frustrating layout problems, like a 'blown-up' image or syntax errors. This is a classic example of how a small change in code can have unexpected visual consequences if not handled correctly.
The Challenge: Why Craft Banners Resist Full Clickability
The Shopify Craft theme, like many others, is designed with a specific hierarchy for its image banner section. The primary call to action is typically a button, and the theme's underlying Liquid and CSS are structured around this. When you try to override this by simply wrapping the entire banner content or the image itself in an anchor tag (), you encounter a fundamental conflict.
As insightful community member ahsandoesntcare pointed out, the tag can sometimes become the dominant layout element. This causes the image to lose its predefined sizing and object-fit rules from its original wrapper, leading to the dreaded 'massively blown-up' image. This visual distortion not only looks unprofessional but also breaks the carefully crafted design of your store.
Here's a visual example of what that sizing issue can look like:

The Solution: A Robust Liquid and CSS Approach
The most elegant and effective solution, as demonstrated by community member Ploqo, involves a clever combination of Liquid code to introduce a new link setting and CSS to create an invisible, full-coverage anchor tag that sits atop your banner. This method ensures the entire banner is clickable without disturbing the original image sizing or responsive behavior.
Step-by-Step Implementation Guide:
Before you begin: Always duplicate your theme! This is non-negotiable. Any direct code edits carry a risk, and a duplicated theme provides a safe rollback point.
-
Access Your Theme Code:
- From your Shopify admin, go to Online Store > Themes.
- Find your current theme, click Actions > Edit code.
- Navigate to
sections/image-banner.liquid. This is where the core structure of your image banner resides.
-
Insert the Liquid and CSS Block:
- Locate the line of code that looks like this (approximately line 120, but search for it to be precise):
- Locate the line of code that looks like this (approximately line 120, but search for it to be precise):