I am working with on a interactive case based on your sample for wix code: "Hide ans Show Elements» and the second sample technique with choosing pattern for the bag (my case is for a configurator of a bike ).
In the code here you are changing the actual pictures on a onClick action. Therefor I know to need how to get the directory and string for the images I upload to call up on them…
I asume //v1/ is for all images….I found the long string for the images, but I see you name the image aswell in the ending? is that required aswell after the long string you get when I copy the link of the image from the preview…?
I also assume that the /246_309/ after the long string is the dimensions of the pictures ??
My problem is that I am unable to access any image in code, even thought the path is correct. I know the path is correct, because the image appears when the full path is entered into the browser bar:
However, the image link fails in code such as this:
I suspect this is because that path is dynamically generated at Wix’s end. Can anyone tell me why a header link like the one above fails to access the image?
Thanks.
The URL is perfectly correct (I can retrieve it), but just wondering: are you trying to do HTML inside the Wix Editor environment? Because that does not work.
Settings > Tracking & Analytics > Custom This is where I have added the link tag I show in my message above. All other meta tags work perfectly in that area. It’s just the image tag that can’t seem to locate the image upon site load. It could be that Wix is incapable of finding an image referenced in the tag.
Found this post when looking for a code to get the right image path from upload and depared with this code.
Just updated it and it follows working as 2020, january: