The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Comment attachments...
 
Share:
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Solved] Comment attachments data-pin-nopin="nopin"

3 Posts
2 Users
0 Reactions
1,166 Views
Posts: 30
 adri
Topic starter
(@adri)
Trusted Member
Joined: 5 years ago

Is there a way to add data-pin-nopin="nopin" to the images attached with comments? This is so the images are not "pin(able)" to Pinterest and don't show the 'save to Pinterest' button.

If there's a function I can add to my genesis theme or the plugin settings please let me know.

Thank you.

2 Replies
Asti
Posts: 8075
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

@adri,

Use this code:

add_filter('wpdiscuz_after_read_more', function ($content) {
return preg_replace('~(<img)([^>]+>)~is', '$1 data-pin-nopin="nopin"$2', $content);
}, 99999999);

Put this code in the WordPress active theme functions.php file (more information on how to add insert custom code). 

Posts: 30
 adri
Topic starter
(@adri)
Trusted Member
Joined: 5 years ago

perfect, thanks so much!!

Share: