WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. amarettosour
    Member
    Posted 10 months 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 10 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic