• Hi,

    Is there a way to add ‘nopin = “nopin”‘ to thumbnail images? As of right now YoutubeLyte lets Pinterest grab those images for pinning, but they do not serve the best representation of what the post is all about.

    Would be great if you could help come up with a php snippet that would insert this tag in all embeds or maybe find a solution for this in some other way.

    Thank you.

    • This topic was modified 4 years, 6 months ago by woorooo.
Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm .. can you try this one maybe?

    
    add_filter('lyte_match_postparse_template','add_nopin');
    function add_nopin($in) {
    	$in = str_replace('data-src=','nopin="nopin" data-src=',$in);
    	$in = str_replace('<img ','<img nopin="nopin" ',$in);
    	return $in;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Add nopin = “nopin” to thumbnails’ is closed to new replies.