Pinterest sharing button resizes blog and product pictures

This topic has 10 replies, 3 voices, and was last updated 9 years, 4 months ago ago by Jack Richardson

  • Avatar: BlankM
    BlankM
    Participant
    August 4, 2015 at 15:21

    Hello,

    Pinterest sharing button in your theme resizes my pictures to thumbnails 100×150 px. I do not know why because I did not set this size for any thumbnails on my website. Please, look at the sharing button code from Firebug:


    <span class=”icon-pinterest”></span>

    As you can see the file it uploads to Pinterest is felted-autumn-leaf-scarf-with-yellow-oak-leaves-s213-1-100×150.jpg, whereas the original file is felted-autumn-leaf-scarf-with-yellow-oak-leaves-s213-1.jpg

    What can I do to fix it? Thank you in advance.

    Best regards,
    Blanka

    9 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 5, 2015 at 07:14

    Hello,

    You can change image size in the file wp-content/themes/legenda/framework/shortcodes.php (line 1250), replace “150,150” in the code $image = etheme_get_image( get_post_thumbnail_id($post->ID), 150,150,false); with your dimensions.

    Best regards,
    Jack Richardson.

    Avatar: BlankM
    BlankM
    Participant
    August 5, 2015 at 10:48

    Hello Jack,

    thank you for you answer. It works well when I modify my legenda theme, but it does not work when I modify only my child theme. Do I need to change something else?

    Best regards,
    Blanka

    Avatar: Eva
    Eva Kemp
    Support staff
    August 5, 2015 at 11:15

    Hello,

    You need copy all function code for share icons from shortcodes.php to functions.php file in your child theme.
    If you have difficulties with it we can do this for you, just provide us with FTP and wp-admin panel credentials in Private Content.

    Regards,
    Eva Kemp.

    Avatar: BlankM
    BlankM
    Participant
    August 5, 2015 at 11:41

    Hello,

    I give you my credentials.

    Yesterday you solved another issue with my website modifying my child theme. Unfortunately I lost your modification when I reloaded the child theme today 🙁

    If you find a minute, please paste this code again for me or tell me, in which place it should be – here is the forum topic about it: https://www.8theme.com/topic/button-text-color-on-a-revolution-slider/#post-78499

    It would be very kind of you. I promise I will save all changes this time.

    Thank you in advance,
    Blanka

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 5, 2015 at 11:53

    Hello,

    I’ve added the code in child style.css that Robert mentioned in the topic you provided.
    As to other modifications we need FTP login details. Please provide us with them.

    Thank you.
    Best regards,
    Jack Richardson.

    Avatar: BlankM
    BlankM
    Participant
    August 5, 2015 at 12:06

    Thank you!

    I send you FTP credentials.

    Best regards,
    Blanka

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 5, 2015 at 13:16

    Hello,

    I’ve added the code in functions.php file of the child theme.
    Please check Pinterest share icon now and clear browser cache before.

    Best regards,
    Jack Richardson.

    Avatar: BlankM
    BlankM
    Participant
    August 5, 2015 at 14:06

    Thank you Jack, I would not do this by myself. It works now 🙂

    Have a nice day,
    Blanka

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 5, 2015 at 14:20

    Hello,

    You’re welcome.

    Have a nice day too.

    Best regards,
    Jack Richardson.

  • Viewing 10 results - 1 through 10 (of 10 total)

The issue related to '‘Pinterest sharing button resizes blog and product pictures’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.