Making an image banner clickable in craft theme, any suggestions?

Hello folks! I’m trying to make my image banner clickable in the craft theme so I can launch my redesigned site. I’ve tried several solutions offered, but none seem to work for me in the customize/draft environment. HELP?!

https://lionandladybugprinting.com

Hi @LionAndLadybug ,

We saw that you need help with your Image Banner. This seems to be custom development task.

I have requested the access to your store. please confirm

We’re looking forward to working with you.

Regards

@LionAndLadybug what actually you want to do ? you want to redirect somewhere we you click on the image ?
From here you can add image banner option
customize->click on add section-> add image banner on button click you can redirect to your desire place

Hello @LionAndLadybug

You can try to follow these steps:

  • Go to Online Store → Themes → Actions → Edit code
  • Go to Sections folder → featured-banner.liquid file
  • Find the code that generates the image for the banner look like this
{% if section.settings.image %}
  
{% endif %}
  • Wrap the image code with an anchor tag to make it clickable. The code will now look like this:
{% if section.settings.image %}
  
    
  
{% endif %}
  • Save changes

Hope this can help. Let us know if you need any further support.

Ali Reviews team.

1 Like

Reena- thanks for your help, the draft of craft theme is what I’m working
on, and I need the top image banner clickable without buttons, to redirect
to the contact page. Thank you!

Hi @LionAndLadybug ,

This has been done


Was my answer helpful? Please hit Like or Mark it as solution!

You are amazing. Thank you so much!!!

Hi @LionAndLadybug

Glad to help.
please like and accept the answer as solution :slightly_smiling_face: