I want to add to my footer two small pictures but with link. In my footer section I have CUSTOM LINK that allows me to upload pictures but no link (see the picture).
Theme used: Dawn version 6.0.2
Please help me to add a link to the images that I want to put in my footer. Thank you
1 Like
Hi @Alien1919 ,
You can check these steps below:
Go to Admin > Online store > Themes > Actions > Edit code
Go to Section folder, and open the footer.liquid file
Then you can add this code between the {%- when āimageā -%} and the {%- endcase -%} as the photo:
{% if block.settings.image_link %}{% endif %}
{%- if block.settings.image != blank -%}
{%- assign image_size_2x = block.settings.image_width | times: 2 | at_most: 5760 -%}
![{{ block.settings.image.alt | escape }}]()
{%- else -%}
{{ 'image' | placeholder_svg_tag: 'placeholder-svg placeholder' }}
{%- endif -%}
{% if block.settings.image_link %}{% endif %}
- find the image_picker under the {% schema %}, and paste the code after the }. Then click SAVE
,{
ātypeā: āurlā,
āidā: āimage_linkā,
ālabelā: āImage linkā
},
you will have like this photo:
I hope it helps.
This did not work for me. All it did was add a second image but no link. Can someone please assist? My site is TheChattyChick.com and in my current theme, the āplant a treeā image links correctly however I am switching to Dawn and would like to get it to work before I publish the new theme.
1 Like
Buna! Mai tii minte cum ai rezolvat? (daca ai rezolvat). Ce a scris @AvadaCommerce nu a functionat, nici nu m-a lasat sa il salvez.
UPDATE: for those who didnāt succed to edit it, this code from video works great:
https://www.youtube.com/watch?v=CNfEuLH0d7o&t=176s