We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.
Is It Possible To Change Content Image src to data-src
I want it to be changed only when synced to the server. If it’s just the rendering to view the site locally.. it would remain src.
I am willing to pay for premium support but don’t where to subscribe for it.
My site is all good n all but there are too many images. In WordPress, we can install the plugin and it rewrites the image URL. But things in HTML publii is complicated.
Publii uses a new and modern native lazy loading mechanism to lazy-load images without the need to write custom lazy-loading code or use a separate JavaScript library. So you really do not need to change the src attribute. More about it: https://getpublii.com/dev/how-images-work-in-publii/#lazy-load
PS: The premium support is dedicated only to the purchased products and does not include any custom work.
Ah ok, so you need a custom helper to change the content images including gallery thumbnails.
I attach such a file, just modify it to your needs. The unzipped file should be placed in the theme’s root folder (Documents ▸ Publii ▸ sites ▸ YOUR_SITE ▸ input ▸ themes ▸ YOUR_THEME)