Hi there,
I'm hoping for a way to have WordPress automatically add a couple of specific attributes to all image tags on the site.
It's for a photography site and I'd like to gently discourage click+drag and right-click using the oncontextmenu="return false;"
and ondragstart="return false;"
attributes for all <img> tags.
My question is...how would I go about doing this? Is there a function I could add to functions.php or a plugin I could use to automatically re-write all image tags to include those attributes? I haven't found one yet, and the one similar discussion around here I found from a year ago didn't get any replies.
Anyone have a possible solution I could try?