Hello - I need to add a line of code to an image on one of my pages so that it will be referenced in an online ordering app. For example, the code for the image currently is:
<div id="comp-jdrsyihl" itemscope itemtype="http://schema.org/ImageObject" class="image">
<img src="https://static.wixstatic.com/media/276b56_5eb93d6e6b3341f98e3085e1f0787799%7Emv2_d_1309_1309_s_2.jpg_srz_200_200_85_22_0.50_1.20_0.00_jpg_srz" alt="photo prints" title="" itemprop="contentURL"
width="200" height="200"
/>
I need to add this first line, so it becomes:
<a href=” roes://pHYaA5U”>
<div id="comp-jdrsyihl" itemscope itemtype="http://schema.org/ImageObject" class="image">
<img src="https://static.wixstatic.com/media/276b56_5eb93d6e6b3341f98e3085e1f0787799%7Emv2_d_1309_1309_s_2.jpg_srz_200_200_85_22_0.50_1.20_0.00_jpg_srz" alt="photo prints" title="" itemprop="contentURL"
width="200" height="200"
/>
</a>
How/where do I do this? Thanks!
Hi Morgan,
Welcome to Wix Code.
The page HTML cannot be modified. I'm not sure if it will help you, but you can add a link to an image by using Wix Code. Take a look at the description of the $w.Image link property. Maybe this will work for you.
Good luck,
Yisrael