Notifications
Clear all

Script Fancybox Add code before each embedded image

1 Posts
1 Users
0 Reactions
69 Views
Posts: 7
Topic starter
(@alquimist08)
Active Member
Joined: 3 months ago

My forum is almost all of images and to give a better experience to visitors looking for many plugins in WordPress but none worked well with embedded images.

Fancybox was added manually and works perfectly, the problem is that have not located how to add the code are missing in each image automatically when copying the link embedded in a topic or response and have to do it manually in source code option.

For example

 

<a data-fancybox="gallery" data-src="https://img1.pixhost.to/images/9945/1258123_159874.jpg"><img src="https://img1.pixhost.to/images/9945/1258123_159874.jpg" /></a>

Want for new images add automatically

<a data-fancybox="gallery" data-src="embedded image link"><img src="embedded image link" /></a>

 

Thanks for your time and attention 👍