Hi -
I am trying to add new images to a website (http://backyardlivingpools.com/portfolio.html) that was created by Webflow, but since migrated to Host Gator (so no read only link). I’ve taken a hard look at the HTML code where these images are found and isolated the following as the ‘div’ that contains one image:
<a class="lightbox w-inline-block w-lightbox" href="#"><img class="lightbox-thumb" src="images/37T.jpg">
<script class="w-json" type="application/json">
{ "group": "Pools", "items": [{
"_id": "571930263af861901b2e1c03",
"cdnUrl": "https://daks2k3a4ib2z.cloudfront.net/570834ccd59e0ed91cb0e6a0/571930263af861901b2e1c03_1-Backyard-17---2013.jpg",
"fileName": "571930263af861901b2e1c03_1-Backyard-17---2013.jpg",
"origFileName": "1-Backyard-17---2013.jpg",
"width": 2000,
"height": 1286,
"fileSize": 455929,
"type": "image",
"url": "images/1-Backyard-17---2013.jpg"
}] }
</script>
</a>
I’ve altered the code above in Sublime Text to reflect the new images I want to display on the website, replacing the tags with the new image’s info:
<a class="lightbox w-inline-block w-lightbox" href="#"><img class="lightbox-thumb" src="images/new photos/DSC_0007.JPG">
<script class="w-json" type="application/json">
{ "group": "Pools", "items": [{
"_id": "69a52240bbb0eeebd93fd4b211ab52e9",
"cdnUrl": "https://s3.amazonaws.com/pooligmagebucket/DSC_0007.JPG",
"fileName": "69a52240bbb0eeebd93fd4b211ab52e9_DSC_0007.JPG",
"origFileName": "DSC_0007.JPG",
"width": 2000,
"height": 1559,
"fileSize": 4299116,
"type": "image",
"url": "images/new photos/DSC_0007.JPG"
}] }
</script>
</a>
The code works perfectly on my desktop (chrome) but breaks completely when I view the new page on my mobile (android). Essentially, when I click the new image (a gallery normally pops up), the loading symbol spins indefinitely. I hosted the new images on the Amazon server to get the new ID, etc etc but this breaks on mobile.
Any advice if my goal is to simply add new images to the portfolio page? I truly appreciate your time and help in advance.
-Spencer