Viewing 3 replies - 1 through 3 (of 3 total)
  • Digg digg-floting display-11 option

    Mihail D

    (@memberremember)

    My local solution next:

    In your themes in file single.php add next rows

    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_EN/sdk.js#xfbml=1&version=v2.3";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    and add this rows in plugin file /plugins/digg-digg/digg-digg.php
    rows 316-320
    (
    before this line
    $floatButtonsContainer .= “<div class=’dd_button_v’>” . $finalURL . “</div><div style=’clear:left’></div>”;
    )

    if(preg_match("#.*name='fb_share'.*share_url='(?<url>[^']+)'.*#sU", $finalURL, $m)){
                if (isset($m['url']))
                    $finalURL = '<div class="fb-share-button" data-href="' . $m['url'] . '" data-layout="button"></div>';
            }
    Mihail D

    (@memberremember)

    source above for floating box (‘Facebook Share’ must be checked)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No Facebook Share button’ is closed to new replies.