Add Pinterest to [share] widget - by Webacto

This topic has 6 replies, 2 voices, and was last updated 8 years, 6 months ago ago by Eva Kemp

  • Avatar: Webacto
    Webacto
    Participant
    October 5, 2015 at 15:41

    How can I add Pinterest to my [share] widget?

    Thanks

    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    October 5, 2015 at 18:12

    Hello,

    You need edit the file wp-content/themes/royal/framework/shortcodes.php (find the section “! Share This Product”) and add this code after line 2010:

    if($pinterest == 1) {
    $html .= '
    <li>
    <a href="http://url_to_your_Pinterest_page" class="'.$tooltip_class.'" title="'.__('Pinterest', ET_DOMAIN).'" target="_blank">
    <i class="ico-pinterest"></i>
    <svg width="38" height="38" xmlns="http://www.w3.org/2000/svg" class="circle">
    <circle cx="19" cy="19" r="18" fill="rgba(255,255,255,0)" stroke="#000000"></circle>
    </svg>
    </a>
    </li>
    ';
    }

    and
    'pinterest' => 1, after line 1927.

    Regards,
    Eva Kemp.

    Avatar: Webacto
    Webacto
    Participant
    October 6, 2015 at 08:31

    Thank you, and how about Skype?

    Avatar: Eva
    Eva Kemp
    Support staff
    October 6, 2015 at 09:15

    Hello,

    The code is familiar for skype icon:

    if($skype == 1) {
    $html .= '
    <li>
    <a href="http://url_to_Skype_page" class="'.$tooltip_class.'" title="'.__('Skype', ET_DOMAIN).'" target="_blank">
    <i class="ico-skype"></i>
    <svg width="38" height="38" xmlns="http://www.w3.org/2000/svg" class="circle">
    <circle cx="19" cy="19" r="18" fill="rgba(255,255,255,0)" stroke="#000000"></circle>
    </svg>
    </a>
    </li>
    ';
    }

    and 'skype' => 1,.

    Regards,
    Eva Kemp.

    Avatar: Webacto
    Webacto
    Participant
    October 9, 2015 at 18:21

    Thank you Eva,

    great!

    Avatar: Eva
    Eva Kemp
    Support staff
    October 9, 2015 at 18:30

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

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

The issue related to '‘Add Pinterest to [share] widget’' 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.