• Pixelgadgets

    (@gwilsonbloggmailcom)


    A plugin that uses custom posts (when a post type is not a page or a post) has the Jetpack sharing icons added to the bottom of the post’s output.

    the widget bridge plugin uses a custom post to store it’s content. When the content is rendered you get the facebook, linkedin, etc icons added to the end of the output.

    There is no way to remove this other than turning off Jetpack sharing, since JP only has switches for pages and post and not custom fields.

    http://wordpress.org/plugins/jetpack/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Pixelgadgets

    (@gwilsonbloggmailcom)

    The plugin is not ‘widget bridge’ but ‘Widget Builder’

    http://wordpress.org/plugins/widget-builder/

    Sorry about that.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    I’m afraid I’m not familiar enough with the plugin to be able to help. it seems to use a Custom Post Type to build the widgets, but when outputting the widget in the sidebar the post type gets set to “Post”. It’s consequently not possible to remove the sharing buttons with a code like this one:

    function jptweak_remove_share() {
        remove_filter( 'the_content', 'sharing_display',19 );
        remove_filter( 'the_excerpt', 'sharing_display',19 );
        if ( class_exists( 'Jetpack_Likes' ) ) {
            remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
        }
    }
    
    function jptweak_rm_share_widget_builder() {
    	$builder_post_type = 'tribe_widget_builder';
    
    	if ( $builder_post_type == get_post_type() || is_post_type_archive( $builder_post_type ) ) {
    		add_action( 'loop_start', 'jptweak_remove_share' );
    	}
    }
    add_action( 'init', 'jptweak_rm_share_widget_builder' );

    Could you ask the Modern Tribe developers to take a look at the problem, and let me know what they think of the problem?

    Thanks!

    Thread Starter Pixelgadgets

    (@gwilsonbloggmailcom)

    Thanks Jeremy for your reply.

    I will forward the info.

    Thread Starter Pixelgadgets

    (@gwilsonbloggmailcom)

    Would it help if Widget Builder exposed the “No sharing” option within the custom post edit screen help prevent this?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    It could help, yes. Custom Post Types are usually displayed there; I’m not sure how the Widget Builder was built and why it’s not displayed there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Jetpack posts sharing links on non-post/page output’ is closed to new replies.