How can I make the entire sale banner clickable on my Prestige Theme?

Hi,

I have Prestige Theme and my URL is www.alemonstory.dk

Does anyone know how I can make the entire SALE banner on my website clickable? Right now it is only possible to click on the very small button ‘SHOP’ - and that is easily missed.

Hope someone can help me with a solution! :slightly_smiling_face:

Best, Mie.

Hi,

To make the banner slideshow clickable, please follow the steps below.

  1. Please go to Edit code > Sections > slideshow.liquid file.

  2. From the slideshow.liquid file, please file <img tag (line 31 & 47) as shown below.

  1. Before the image tag <img, please add the code below. (For both mobile image & desktop image)

That’s the same link as your primary button link. If you want to use the secondary button link, you may change it from button_1_link to button_2_link.

  1. At the end of the tag, please do forget to add (ending the anchor tag) for both mobile and desktop image.

It will be as below.


                
            
          {%- endif -%}

          {%- if block.settings.image -%}
            
              {% assign image_url = block.settings.image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %}

              

Don’t forget to save the changes.

Hope it helps.

Hi David.
So I tried to do it - here I have a screenshot of how it looked when I inserted the code:

But then my website looked like this with the banner gone:

Thus i removed the code again. What did I do wrong?
Best, Mie

Because you added 2 anchor tag without end . This incomplete anchor tag will mass the DOM structure.

You should remove the first <a tag as below.

Hope it helps.

Hi David,

Thanks for helping. I have not entered the code like this:

Unfortunately the banner still disappears.

Best, Mie

  • I have NOW entered the code like above.

@MieMartine

Hi,

The code was for old Prestige theme.

Please disregard the code above.

Simply remove the button text and keep the button link.

The button link will be applied to the image.

Hope it helps.

Hi David,

Okay, no problem.

If I remove the button text in the theme editor, the banner disappears.