Hi Community,
I am trying to add a URL to an ´image´ banner on the footer section of my site but there is no such option to add it.
I’m thinking it could be done in the code editor.
Can anyone help?. I’m using Sense free theme.
Thanks in advance
Hi Community,
I am trying to add a URL to an ´image´ banner on the footer section of my site but there is no such option to add it.
I’m thinking it could be done in the code editor.
Can anyone help?. I’m using Sense free theme.
Thanks in advance
Hi @eristorecl ,
Please follow the instructions below. I hope you are a little comfortable with coding.
{% if block.settings.image_link %}{% endif %}
{%- if block.settings.image != blank -%}
{%- assign image_size_2x = block.settings.image_width | times: 2 | at_most: 5760 -%}
{%- else -%}
{{ 'image' | placeholder_svg_tag: 'placeholder-svg placeholder' }}
{%- endif -%}
{% if block.settings.image_link %}{% endif %}
Please refer to the image below for code placement.
,{
"type": "url",
"id": "image_link",
"label": "Image link"
},
Please refer to the image for code placement.
Made4uo,
Just wow! this worked perfectly.
I am very thankful for the quick and accurate solution you provided.
Ty!!
This solution is very excellent. This should be the default code!
Free Tip: If the steps provided didn’t work for you, it’s likely because you have one more step. After completing the steps in the answer, you need to go into the website editor, choose the image in your footer, and enter the link you want to use with the image.
Salutare. Poti sa-mi spui te rog cum ai rezolvat sa adaugi link-ul? si eu ma confrunt cu aceeasi problema si nu reusesc
This solution isn’t working for me, I’m getting the following error message when I try the save the code changes. I’m using theme Publisher. Thanks
I am getting this error message also! Any luck?
Make sure you dont have two commas before the code, and copy the image code below
Thanks for responding - still no luck! I’m a fool.
Wait, I removed the comma. Perfect - thank you!!!
Me again, It works perfectly for desktop but mobile view the link doesn’t work - any help as to why? Do I need additional css
Hi
Do you mind sharing your website so we can take a look?