Property 'src' of 'Image' element issue.

Could you please check if you have the same issue in your published website :
It seems that inside or outside wix link applied to the image element fail :

$w('#image').src = ...

preview mode : no issues.

published mode :
works only in Repeater element.

1 Like

Hi! Have completely the same issue with a link on the photo URL using .src.
No issues in the preview mode and doesn’t work after the site is published.
Putting in a repeater helped btw, thank you!

Hi Yury,
You’re welcome.
I wrote an example using Repeater element. Maybe it can help.

https://community.wix.com/velo/forum/main/comment/50f9aeb7-4fd9-4b40-b1c9-131339751585?postId=63f81854aee1f10012afa4ee

Images on my site have started not updating when changing the image with .src. The pages have worked fine for years and still do on the preview, Oddly a few pages that use identical code still work OK.