Solved

How do I end <a href= ?? (image links)

PrimeBeast7
Excursionist
24 1 10

So I use <a href="LINK"> to turn an image into a link, however when I do this, it also turns everything below it, into a link!

Is there some piece of code I should put after my image code to stop this from happening? Thanks!

Accepted Solution (1)
AdamSmith12
Shopify Partner
79 5 8

This is an accepted solution.

i think you forget to close the a tag 

<a href="LINK.com">
<img src="{{ 'IMAGE.jpg' | asset_url }}" style="height: Ypx; width: Xpx" title="My image">

</a>

If helpful then please Like and ✔️ Accept Solution.
Do you need custom changes on store ? please send me a personal message and we can discuss.
Email: redaboubkraoui@gmail.com

View solution in original post

Replies 4 (4)

AdamSmith12
Shopify Partner
79 5 8

can you please show me the full code do you use ?

If helpful then please Like and ✔️ Accept Solution.
Do you need custom changes on store ? please send me a personal message and we can discuss.
Email: redaboubkraoui@gmail.com
PrimeBeast7
Excursionist
24 1 10

Sure, the code I use is:

<center>
<a href="LINK.com">
<img src="{{ 'IMAGE.jpg' | asset_url }}" style="height: Ypx; width: Xpx" title="My image" />

AdamSmith12
Shopify Partner
79 5 8

This is an accepted solution.

i think you forget to close the a tag 

<a href="LINK.com">
<img src="{{ 'IMAGE.jpg' | asset_url }}" style="height: Ypx; width: Xpx" title="My image">

</a>

If helpful then please Like and ✔️ Accept Solution.
Do you need custom changes on store ? please send me a personal message and we can discuss.
Email: redaboubkraoui@gmail.com
PrimeBeast7
Excursionist
24 1 10

Thanks!!