The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Comment attachments data-pin-nopin="nopin"
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Dec 14, 2020 12:22 am
(@adri)
Trusted Member
Joined: 6 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.
Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Dec 14, 2020 1:58 pm
(@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).
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Dec 14, 2020 10:31 pm
(@adri)
Trusted Member
Joined: 6 years ago
perfect, thanks so much!!