WordPress.org

Forums

Simple Share Buttons Adder
Thumbnail and excerpt on linkedin share (3 posts)

  1. amarettosour
    Member
    Posted 1 year ago #

    Is there a way of getting the thumbnail, title and an excerpt to show when using the linkedin share button?

    Thanks

    http://wordpress.org/plugins/simple-share-buttons-adder/

  2. CassCreates
    Member
    Posted 1 year ago #

    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.

  3. procletnic
    Member
    Posted 8 months ago #

    This was helpful, thank you :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Share Buttons Adder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic