We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to make multicolumn images clickable in Reformation theme?

How to make multicolumn images clickable in Reformation theme?

jkjcreative
Tourist
10 0 1

Hi,

I'm trying to make each image in my multicolumn section clickable to a link, in Reformation default theme. 

 

Screenshot 2024-07-18 at 11.20.58 AM.png

 

Note, my code currently doesn't have a base.css file.

Currently, when I input a link in the 'link' section, it only makes the 'link label' clickable but I don't want a link label, just the image linked. 

Thanks!

Replies 4 (4)

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

Hi @jkjcreative 

Please click the link label and then send me your store URL so I can give you the code to make your section clickable without displaying link label.

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Huptech-Web
Shopify Partner
1169 234 265

Hi @jkjcreative , to accomplish this, you can use an anchor tag before the multicolumn__image div in your code. Simply place the anchor tag before the multicolumn__image div and close the anchor tag after the div is closed. Also, I have removed the link label from the backend as per your requirement, and please ensure that you have used a for loop for that.

See the code provided below.

 

<a href="{{ block.settings.link}}">
  <figure class="multicolumn__image" style="width: 100px;">
    <div class="multicolumn__image--inner aspect-ratio aspect-ratio--square" style="--ratio-percent: 100%;">
      <img
        class="retina_size lazyautosizes lazyloaded"
        width="100"
        height="100"
        data-sizes="auto"
        src="//89896a-d5.myshopify.com/cdn/shop/files/fresh_spring_icon_226841c5-09c5-4c5d-ab1d-beb482b1c80b_20x_crop_center.png?v=1721261820"
        data-srcset="//89896a-d5.myshopify.com/cdn/shop/files/fresh_spring_icon_226841c5-09c5-4c5d-ab1d-beb482b1c80b_407x_crop_center.png?v=1721261820 407w,//89896a-d5.myshopify.com/cdn/shop/files/fresh_spring_icon_226841c5-09c5-4c5d-ab1d-beb482b1c80b_814x_crop_center.png?v=1721261820 814w"
        fetchpriority="auto"
        alt=""
        style="object-position: 50.0% 50.0%;"
        sizes="100px"
        srcset="//89896a-d5.myshopify.com/cdn/shop/files/fresh_spring_icon_226841c5-09c5-4c5d-ab1d-beb482b1c80b_407x_crop_center.png?v=1721261820 407w,//89896a-d5.myshopify.com/cdn/shop/files/fresh_spring_icon_226841c5-09c5-4c5d-ab1d-beb482b1c80b_814x_crop_center.png?v=1721261820 814w"
      >
    </div>
  </figure>
</a>

 

 

Feel free to reach out if you have any additional questions. If this solution is helpful, please consider liking and accepting it.
S.P

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required
jkjcreative
Tourist
10 0 1

I haven't got to try this yet, but I will let you know ASAP. Thanks!