New Shopify Certification now available: Liquid Storefronts for Theme Developers

Dawn Theme 2 Clickable Banner Images

Ksu10005
Excursionist
21 0 3

Hello! I want to create 2 full width images and I want both of them have different links. I do it with Image banner and tried to find solution, but I found code only for 1 whole link for 2 pictures, but I need different links for each image.

Replies 12 (12)
rokon
Shopify Partner
7 0 2

Hi @Ksu10005 

 

Can you share your website URL with password, please?

 

If you found the solution helpful then hit the Like button and Accept it.
Connect me via: Email | Skype: rokon_rt | Linkedin
Ksu10005
Excursionist
21 0 3

This is URL
https://andiamodai-2.myshopify.com/

But I can't share the password, it's my client's site 

Ksu10005
Excursionist
21 0 3

Hi! @rokon 

https://eco-plastic-free-2.myshopify.com/pages/%D0%BF%D1%80%D0%BE-%D0%BD%D0%B0%D1%81
Here is the link to the necessary page 

Here is the password - eustew

rokon
Shopify Partner
7 0 2

Hi @Ksu10005 

 

Then remove last "div" which contains "banner__conetnt" class and place your ".banner__content"  wrapper inside each ".banner__media-half" .  This wrapper:

 

<div class="banner__content banner__content--middle-center page-width">
   <div class="banner__box content-container content-container--full-width-mobile color-background-1 gradient">
        
   </div>
</div>

Will go inside here: (you can place the code after image tag)

<div class="banner__media media banner__media-half">
      <img src="your-image-source" />
</div>

 And the full code will be like this:

Screenshot 2023-01-06 at 5.43.59 PM.png

 And don't worry about any CSS or custom coding. It will work fine as it is. You just have to add two different ids in your Schema for the content block and URL

If you found the solution helpful then hit the Like button and Accept it.
Connect me via: Email | Skype: rokon_rt | Linkedin
Ksu10005
Excursionist
21 0 3

Hello  @rokon 
It seems that I put everything that was necessary, but it looks like this and doesn't have links 😞

Снимок экрана 2023-01-09 в 11.11.54.png

rokon
Shopify Partner
7 0 2

Hi @Ksu10005 

 

Use your button block and place your desired link. I hope that will work fine 🙂

 

If you found the solution helpful then hit the Like button and Accept it.
Connect me via: Email | Skype: rokon_rt | Linkedin
Ksu10005
Excursionist
21 0 3

@rokon 

Unfortunately it doesn't work although I put links
Maybe I'm just doing something wrong 

Снимок экрана 2023-01-09 в 11.55.10.png

rokon
Shopify Partner
7 0 2

@Ksu10005 

 

Fix your anchor link wrapper. The code looks like below

<a href="your-link" <="" a="">  </a>

 

Which should be like this:

<a href="your-link">  </a>
If you found the solution helpful then hit the Like button and Accept it.
Connect me via: Email | Skype: rokon_rt | Linkedin
Ksu10005
Excursionist
21 0 3

@rokon 

Now it works with links! Wow!

But can I somehow change the appearance? It would be perfect if these white block would be hidden and just pictures have the links.
But if it's not possible, maybe I can at least change font, align, size and color?

Снимок экрана 2023-01-09 в 12.16.45.png

rokon
Shopify Partner
7 0 2

@Ksu10005 

 

Glad to hear that it worked. 😍 To remove the background, remove the CSS. And I believe there was another anchor link which was covering the whole image. I guess you removed that too. 

 

Anyway, you got your solution. Please accept the solution and hit the like button. 😍

If you found the solution helpful then hit the Like button and Accept it.
Connect me via: Email | Skype: rokon_rt | Linkedin
GemPages
Shopify Partner
5587 1260 1164

Hello @Ksu10005 

 

I tried using 2 Image Baners and they allow pick 2 different links for each image : 

GemPages_0-1672978799484.png

pls let me know if I missed anything.

 

Thank you and hope to hear from you.
Best regards,
GemPages Support Team

 

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
Ksu10005
Excursionist
21 0 3

Hello! @GemPages 

No, I mean like there are 2 photos in section image banner


Снимок экрана 2023-01-06 в 10.49.12.png