WordPress.org

Support

Support » Plugins and Hacks » Simple Share Buttons Adder » Thumbnail and excerpt on linkedin share

Thumbnail and excerpt on linkedin share

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="http://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="http://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.

    This was helpful, thank you 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Thumbnail and excerpt on linkedin share’ is closed to new replies.
Skip to toolbar