MAKE ANY IMAGE CLICKABLE IN DAWN - If more than 2 sections, text becomes blue and underlined

I have code to make the images clickable and have used it in Dawn 5.0 & 6.0.2:

Section Liquid code:

{% if section.settings.image_link != blank %}

Then in the Schema:

{
“type”: “url”,
“id”: “image_link”,
“label”: “Image Link”
},

If I add this to more than 1 section, it changes the text in those sections to blue and underlines the text as well. To fix it, I can add this code but it’s not a good way of doing it.

a:link {
text-decoration: none !important;
color: #000000 !important;
}

Is there a way to do this so that I can have multiple section images clickable (without changing text to blue and adding an underline)?

password = website

Thank you in advance for your help.

1 Like

@Smiley1311

ohh sorry but i can see its work properly

1 Like

@KetanKumar What browser are you using? I am using Chrome and it is still happening. I also checked it in Microsoft Explorer and Firefox and it is happening there too as well. Why is it happening to me and not you? Is there a way to debug it and see why it’s happening? I tried using Inpect with Chrome but I couldn’t see anything. (I am only a beginner at this). If I am seeing it I am worried that my customer is too.

Thank you for your help