Add data attribute to image in post
-
Hi,
I’ve been researching how to automatically add a data attribute on each image in my post.
I’m not sure if I should use the functions.php file or if I should instead use one of my JavaScript file.
Either, any code snippet would be really helpful.
Thank you all!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add data attribute to image in post’ is closed to new replies.