Thank you i’ve made it but it doesn’t work
So i made the first version you proposed in interface-functions.php
it works with portfolio but it doesn’t work with posts
the photo i send to you is from a post
Thank you to provide solution for the posts 🙂
The js file will work for single post also.
Please try to clean the browser cache. Because you change the js file, maybe your browser use old file in cache when you test it.
If it still doesn’t work, please leave the page url.