Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • for some reason it’s not pulling the open graph tags from pages, work around I’m using is Linkedin’s old url parameters

    in simple-share-buttons-adder.php I changed

    // linkedin share link
    	$htmlShareButtons .= '<a id="ssba_linkedin_share" class="ssba_share_link" href="https://www.linkedin.com/shareArticle?mini=true&url=' . $urlCurrentPage  . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? 'target="_blank"' : NULL) . '>';

    to

    // linkedin share link
    	$htmlShareButtons .= '<a id="ssba_linkedin_share" class="ssba_share_link" href="https://www.linkedin.com/shareArticle?mini=true&url=' . $urlCurrentPage  . '&title=' . get_the_title($post->post_parent) . '&summary=' . get_the_excerpt() . '&source=' . get_site_url() . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? 'target="_blank"' : NULL) . '>';

    unfortunately there’s no way that I know of to designate an image using this method but it will grab the title, excerpt, and site name.

    Here’s how I got it to show post title with twitter share:

    On line 882 of simple-share-buttons-adder.php change:

    $htmlShareButtons .= '<a id="ssba_twitter_share" href="https://twitter.com/share?url=' . $urlCurrentPage . '&text=' . $twitterShareText . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? 'target="_blank"' : NULL) . '>';

    to:

    $htmlShareButtons .= '<a id="ssba_twitter_share" href="https://twitter.com/share?url=' . $urlCurrentPage . '&text=' . get_the_title($post->post_parent) . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? 'target="_blank"' : NULL) . '>'
Viewing 2 replies - 1 through 2 (of 2 total)