• Hi Marcin, team, and users,

    This message is just for information purposes.

    I had a user of our Advanced Ads plugin asking about how to disable your pin-it button for image ads. I came up with a few lines of code that would add the nopin class to image ads automatically. You can add it to the theme’s functions.php file.

    add_filter( 'advanced-ads-ad-image-tag-attributes', 'advads_prevent_pin_it_button' );
    function advads_prevent_pin_it_button( $attributes ){
    	return $attributes . " class='nopin'";
    }

    I am hesitant to add this to the core plugin since it is still possible that users might want the buttons for images managed with Advanced Ads.

    Hope this helps,
    Thomas

  • The topic ‘Solution to hide Pin It Button on image ads’ is closed to new replies.