WordPress.org

Ready to get started?Download WordPress

Forums

Social Sharing Toolkit
Fix for Google+ Share (7 posts)

  1. ganphx
    Member
    Posted 1 year ago #

    Problem: The Google+ share button opens a new window but the contents is blank as the share link is incorrect.

    Fix: Change line 28 in social-sharing-toolkit/includes/buttons/button.googleplus.php to:

    $url = 'https://plus.google.com/share?url='.urlencode($url);

    http://wordpress.org/extend/plugins/social-sharing-toolkit/

  2. El Tio Rufi
    Member
    Posted 1 year ago #

    Thank you very much!!!!!

  3. LifesABargain
    Member
    Posted 1 year ago #

    Is there an easy fix for those of us who know nothing about coding?

  4. Uwhoosh
    Member
    Posted 1 year ago #

    Great fix and it works. You don't need to know anything about coding, just copy and paste. Let me break it down into steps.
    1. find this file: button.googleplus.php. Using your Cpanel, navigate to your website files(look out for the file manager tab). Your website host should have a search files feature. If they don't, it's time to find another host. Just copy and paste "button.googleplus.php" into the search box and voila!
    2. Open the file. Most host provide a code editor.
    3. find this code
    $url = 'https://plusone.google.com/_/+1/confirm?hl=en&url='.urlencode($url).'&title='.urlencode($title);

    it should be line 28, it's near the bottom. Select the code and paste this code
    $url = 'https://plus.google.com/share?url='.urlencode($url);

    Save the file and that's it.
    You can also pray and pray and hope the plugin author will fix this in the near future.
    Hope that helps.

  5. onomoney
    Member
    Posted 1 year ago #

    Thank you all for the fix, great catch!

  6. WebforWes
    Member
    Posted 1 year ago #

    Didn't work for me. Replaced with https://plus.google.com/share?url= and I still get a popup and instant-close.

  7. ganphx
    Member
    Posted 1 year ago #

    Post link to your website as this patch does work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic