• The site is showing the

    Share This:

    text but the Sharedaddy share button is not showing next to it. I’ve spoken to friends and this has happened over quite a few blogs.

    Maybe a update has broken it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • This seems to be an bug, if some plugin calls “apply_filter”, sharedaddy will be marked as rendered and it will not show up again.

    A quick and dirty fix is to change line 402 in file wp-content/plugins/sharedaddy/sharing-service.php from:

    // Only show once
         if ( isset( $shared_with_posts[$post->ID] ) )
            $show = false

    To

    // Only show once
         if ( isset( $shared_with_posts[$post->ID] ) ) {
             $found = strstr($text, '<div class="snap_nopreview sharing robots-nocontent">');
             $show = (empty($found))?true:false;
         }

    Sorry, the code would activate the sharing option even if it shouldn’t be active. Now it should work as expected:

    // Only show once
         if ( isset( $shared_with_posts[$post->ID] ) && $show === true ) {
             $found = strstr($text, '<div class="snap_nopreview sharing robots-nocontent">');
             $show = (empty($found))?true:false;
         }

    Thank you so much!

    Worked like a charm for me as well! Thanks a million!

    This didn’t quite work out for me. Any other suggestions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Share button not showing’ is closed to new replies.