A shop-the-look section for Shopify: a lifestyle photo with product hotspots. Each dot opens a small card with the product image, title, price and a link, and a list beside the photo shows the same products. Use it on the home page, a lookbook or a collection page to turn a styled photo into a shoppable one. Copy section.liquid into your theme's sections folder and add it from the theme editor as "WDS Shop the look".
How it works
Every hotspot is a block with a product and a horizontal and vertical position in percent. Dots are white with a ring in your accent color. Selecting a dot opens its product card next to it, and only one card is open at a time. Cards on the right half of the photo open to the left, and cards on the lower half open upward, so they stay on the image. On phones the card sits along the bottom of the photo.
Pointing at or focusing a product in the side list highlights its dot. Prices use your store's money format, show "From" for products with several prices, and mark sold-out products. When you select a hotspot block in the theme editor, its card opens so you can check the position.
Customization
- Eyebrow, Heading and Text (rich text).
- Image, Image ratio (adapt, portrait, square or landscape) and Image position on desktop.
- Show product list, List heading, plus Button label and Button link under the list.
- On each Hotspot block: Product, Horizontal position and Vertical position.
- Labels for the card link, the dots, the close button, variable prices and sold-out products.
- Background, Text and Accent colors, plus Side, Top and Bottom padding.
Accessibility
Dots are real buttons named "Product 1: title", with aria-expanded and aria-controls pointing to their card. The card follows its dot in the tab order, so Tab moves from a dot to the product link. Escape or the close button closes the card and returns focus to the dot. Clicking outside or moving focus elsewhere closes it too. Each dot has a larger invisible touch area, all controls show a visible focus outline, and animations stop for people who prefer reduced motion.
Usage notes
This section requires an Online Store 2.0 theme and takes its fonts from it. Up to 8 hotspots fit in one section. Check the dot positions on a phone as well, since a photo cropped to a different ratio moves its contents. The card does not include an add-to-cart button: it links to the product page, where shoppers choose variants.
The preview uses an Unsplash photo and invented products and prices; replace them with your own image and products. In the preview the links do nothing and the first card starts open.