Dawn theme: How can I make the banner image clickable (link) without a button?

Solved

Dawn theme: How can I make the banner image clickable (link) without a button?

Ancientrome
Tourist
8 0 2

The button position of the banner image is not aesthetic.

 

Is it possible to make the banner image a clickable, leading to a product page?

 

Thanks

Accepted Solution (1)
B2Bridge
Excursionist
334 67 82

This is an accepted solution.

Hi @Ancientrome, you can follow these steps:

Step 1: Open Online Store -> Themes -> Edit code

Step 2: Find image-banner.liquid file

Step 3: Paste this code before {% schema %} tag:

<script>
  document.addEventListener("DOMContentLoaded", () => {
    const bannerEl = document.querySelector(".banner");
    bannerEl?.addEventListener("click", () => {
      window.location.href = "/" // Replace url if you need
    })
  })
</script>

B2Bridge_0-1739957151759.png

If this helpful, please let us know by giving us a like and marking its as a solution. Thanks you 😍

 

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

View solution in original post

Replies 7 (7)

B2Bridge
Excursionist
334 67 82

Hi @Ancientrome, can you share us your store url?

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

Ancientrome
Tourist
8 0 2

Sorry but I don't want to make it public. I don't have any custom coding done on the site. The theme is Dawn 15.2.0

B2Bridge
Excursionist
334 67 82

This is an accepted solution.

Hi @Ancientrome, you can follow these steps:

Step 1: Open Online Store -> Themes -> Edit code

Step 2: Find image-banner.liquid file

Step 3: Paste this code before {% schema %} tag:

<script>
  document.addEventListener("DOMContentLoaded", () => {
    const bannerEl = document.querySelector(".banner");
    bannerEl?.addEventListener("click", () => {
      window.location.href = "/" // Replace url if you need
    })
  })
</script>

B2Bridge_0-1739957151759.png

If this helpful, please let us know by giving us a like and marking its as a solution. Thanks you 😍

 

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

Ancientrome
Tourist
8 0 2

Wow it worked!!! Thank you

Dan-From-Ryviu
Shopify Partner
11374 2229 2404

Hi @Ancientrome 

You can follow the instructions in this article to do that

Make image banner clickable

 

- Found this helpful? Hit "Like" and "Accept as Solution"! Support me: Donate!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

Ancientrome
Tourist
8 0 2

This didn't work for me unfortunately.

Dan-From-Ryviu
Shopify Partner
11374 2229 2404

You still need to dad label and link to the button then my code will hide it and URL to your image

- Found this helpful? Hit "Like" and "Accept as Solution"! Support me: Donate!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.