Social media icons - by quackhandle - on WordPress WooCommerce support

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

  • Avatar: quackhandle
    quackhandle
    Participant
    December 23, 2015 at 09:43

    Hi,

    I’ve installed the Skate one page demo. I can’t find how to remove certain social media icons and set the links for the ones I want to remain.

    I’ve looked in static blocks but there’s nothing obvious there.

    Thanks.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    December 23, 2015 at 10:49

    Hello,

    You need edit the file wp-content/themes/royal/framework/shortcodes.php (find the section “! Share This Product” in line 1918), to change links you need edit the code, for example for Twitter <a href="https://twitter.com/share?url='.$permalink.'&text='.$post_title.'" class="'.$tooltip_class.'" title="'.__('Twitter', ETHEME_DOMAIN).'" target="_blank"> and replace https://twitter.com/share?url='.$permalink.'&text='.$post_title.' with a link to your Twitter account.
    Also remove or comment the code for icons you don’t need.

    Regards,
    Eva Kemp.

    Avatar: quackhandle
    quackhandle
    Participant
    December 23, 2015 at 18:14

    Thanks Eva. Is it possible to add an Instagram icon at all?

    Avatar: Eva
    Eva Kemp
    Support staff
    December 23, 2015 at 19:05

    Hello,

    To add Instagram icon you need add this code after line 2010 in the same shortcodes.php file:

    if($instagram == 1) {
    $html .= '
    <li>
    <a href="http://url_to_your_Instagram_page" class="'.$tooltip_class.'" title="'.__('Instagram', ET_DOMAIN).'" target="_blank">
    <i class="ico-instagram"></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

    'instagram' => 1 after line 1927.

    Regards,
    Eva Kemp.

    Avatar: quackhandle
    quackhandle
    Participant
    January 4, 2016 at 11:37

    That’s great, thanks Eva.

    Avatar: Eva
    Eva Kemp
    Support staff
    January 4, 2016 at 13:55

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

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

The issue related to '‘Social media icons’' 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.