Support » Plugin: Simple Share Buttons Adder » Disable social buttons from Custom Post Type

  • Resolved markifornia


    Great plugin but social buttons are appearing on custom post types – is there any way to disable them? I don’t see an option to disable them in the plugin backend interface using switches so tried the below within the functions.php file but it’s not working. Any workarounds or solutions? Thanks

    function remove_share_buttons_custom_post() {

    global $post;

    if ( get_post_type( $post ) == “portfolio”) {
    remove_filter( ‘the_content’, ‘show_share_buttons’);
    add_action(‘wp’, ‘remove_share_buttons_custom_post’);

Viewing 1 replies (of 1 total)
  • Plugin Author Simple Share


    Sorry we do not currently have a solution for custom post types. We will look into adding this option in the future. For now you could hide the buttons using the <?php do_shortcode( ‘[ssba-hide]’ ); ?> code within your CPT loop. If that doesn’t work for you maybe hide it with styling in the header if the post_type === ‘your-post-type’. Thanks for using our plugin!

Viewing 1 replies (of 1 total)
  • The topic ‘Disable social buttons from Custom Post Type’ is closed to new replies.