WordPress.org

Ready to get started?Download WordPress

Forums

Social Sharing Toolkit
[resolved] Pinterest Setting (5 posts)

  1. crazyadventuresinparenting.com
    Member
    Posted 1 year ago #

    The Pinterest portion of this plug-in only uses smaller, thumbnail type of images from my posts. Is there a way to change this setting? I can't find it anywhere.

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

  2. victmo
    Member
    Posted 1 year ago #

    I had the same problem and has to patch the plugin code to use a higher resolution version of the thumbnail.

    open wp-content/plugins/social-sharing-toolkit/social_sharing_toolkit.php in a text editor and change line 729 to:

    if ($media = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full')) {

    also on wp-content/plugins/social-sharing-toolkit/includes/share.widget.php, change line 20 to:

    if ($media = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full')) {

    just added an extra parameter to the wp_get_attachment_image function :)

    Cheers

  3. chiragahir
    Member
    Posted 1 year ago #

    Hello Victmo,

    What would be different in this code if I wanted to share the first image of the post instead the featured image?

    Thanks in advance.

  4. tapefreak
    Member
    Posted 1 year ago #

    there are multiple occurrences of wp_get_attachment_image_src() in social-sharing-toolkit.php. be sure to apply vitcmo's solution to the right one, located within the share() function

  5. LinksAlpha
    Member
    Plugin Author

    Posted 10 months ago #

    Option will be provided for this in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.