• Resolved louisjpe

    (@louisjpe)


    Hey all,

    I recently embedded a tweet into one of my posts on http://blog.symbid.com.

    After publishing the post I realised the Twitter button had disappeared from the social share bar. This really sucks as Twitter is my most used social platform.

    Below is the standard code that I used to embed the post. I’ve tried removing the code, switching the social share bar on and off, etc. I also checked the stylesheet of the hueman-child theme I’m using.

    <blockquote class="twitter-tweet" lang="en">
    <p dir="ltr" lang="und">Tech, tech & more tech. Loving <a href="https://twitter.com/hashtag/BrightDay?src=hash">#BrightDay</a>! <a href="https://twitter.com/Bright">@Bright</a> <a href="https://t.co/klimNKptUu">pic.twitter.com/klimNKptUu</a></p>
    — Symbid (@Symbid) <a href="https://twitter.com/Symbid/status/668074065534566400">November 21, 2015</a></blockquote>
    <script src="//platform.twitter.com/widgets.js" async="" charset="utf-8"></script>

    Does anyone what happened?

    Thanks in advance,
    Louis

Viewing 9 replies - 1 through 9 (of 9 total)
  • Twitter removed the share-count API on November 20th. That’s why it’s no longer working. See: https://blog.twitter.com/2015/hard-decisions-for-a-sustainable-platform

    I’m trying to find a solution. Maybe someone have a tip ?

    Try this:

    Open /inc/sharrre.php, locate this on line 3:

    <div id="twitter" data-url="<?php echo the_permalink(); ?>" data-text="<?php echo the_title(); ?>" data-title="Tweet"></div>

    Replace with:

    <div id="twitter" data-url="<?php echo the_permalink(); ?>" data-text="<?php echo the_title(); ?>" data-title="Tweet"><a class="box" href="#"><div class="count" href="#">+</div><div class="share"><i class="fa fa-twitter"></i></div></a></div>

    Now the button should be back, without a count but with a + sign instead.

    Thread Starter louisjpe

    (@louisjpe)

    Wow, and there I was thinking I had broken something.

    Thanks Alexander, works for me!

    TY for this fix!

    Woow.. thank you so much !

    Included this fix in 2.2.4:

    – Updated to OptionTree 2.5.5
    – Updated to Font Awesome 4.5.0
    – Updated to TGM Plugin Activation 2.5.2
    – Fixed Twitter share button

    Here is the latest code with a larger plus-sign:

    <div id="twitter" data-url="<?php echo the_permalink(); ?>" data-text="<?php echo the_title(); ?>" data-title="Tweet"><a class="box group" href="#"><div class="count" href="#"><i class="fa fa-plus"></i></div><div class="share"><i class="fa fa-twitter"></i></div></a></div>

    Hi Alex,
    sharrre plugin still try to connect Twitter service for count number.

    You can check this in console:
    https://cdn.api.twitter.com/1/urls/count.json [HTTP/1.1 404 Not Found 171ms]

    For now I fix this problem by editing jquery.sharrre.min.js in JS folder and replace:

    http://cdn.api.twitter.com/1/urls/count.json?url={url}&callback=?

    with

    http://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?

    Hi Makabe, to fix the Twitter share count url error in console, I would recommend to disable the Twitter button’s counter entirely by setting enableCounter option of Sharrre to false.

    Open inc/sharrre.php, then add the option as shown below:

    jQuery('#twitter').sharrre({
      ...
      enableCounter: false,
      ...
    });

    Thanks a lot Alex and Hendy. Fixed it! 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Twitter button missing from social share bar’ is closed to new replies.