Change social button - by Greta - on WordPress WooCommerce support

This topic has 12 replies, 3 voices, and was last updated 7 years, 8 months ago ago by Robert Hall

  • Avatar: Greta
    Greta
    Participant
    August 12, 2016 at 10:47

    hello, how they fit remove the buttons of social networks and email? because I put the shortcode “[share] but do not understand where it operates …
    I also want to enlarge them in the home, is it possible?

    11 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 12, 2016 at 11:00

    Hello,

    You need edit the file wp-content/themes/classico/framework/shortcodes.php (find the section “! Share This Product”).

    Find code below

    	extract(shortcode_atts(array(
    		'title'  => '',
    		'text' => '',
    		'tooltip' => 1,
            'twitter' => 1,
            'facebook' => 1,
            'pinterest' => 1,
            'google' => 1,
            'mail' => 1,
    		'class' => ''
    	), $atts));

    And set the value to ‘0’ instead of ‘1’ if you want to disable one of them.

    Also we recommended to make all changes in the Child Theme.
    https://www.8theme.com/demo/docs/royal/index.html#!/2_child_theme
    https://codex.wordpress.org/Child_Themes
    Regards,
    Robert Hall

    Avatar: Greta
    Greta
    Participant
    August 12, 2016 at 11:15

    But i must use the ftp? oe i put this code in to child theme?

    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 12, 2016 at 12:57

    Hello,

    Yes, you can edit this file via FTP.

    Also please clarify which exactly social icons you want to remove? Maybe we can do it via CSS code without touching php files.

    Regards,
    Robert Hall

    Avatar: Greta
    Greta
    Participant
    August 18, 2016 at 10:31

    I want remove twitter, google plus and i want insert instagram…

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 18, 2016 at 11:09

    Hello,

    You need edit the file as Robert told and to add Instagram icon you need add this code in 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 473.

    Best regards,
    Jack Richardson.

    Avatar: Greta
    Greta
    Participant
    August 22, 2016 at 11:26

    I’m afraid of making a mistake and destroy the site, you can make these changes to the files via ftp?

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 22, 2016 at 11:47

    Hello,

    The FTP credentials are incorrect. Please check them.

    Regards,
    Robert Hall

    Avatar: Greta
    Greta
    Participant
    August 22, 2016 at 14:11

    This is correct now…thanks

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 23, 2016 at 07:31

    Hello,

    I’ve made changes in the /wp-content/themes/classico/framework/shortcode.php file. Now go there and change the instagram link to your own – http://prntscr.com/c988ll

    Regards,
    Robert Hall

    Avatar: Greta
    Greta
    Participant
    August 23, 2016 at 14:22

    ok, thanks a lot…

    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 23, 2016 at 15:18

    You’re welcome!

    Regards,
    Robert Hall

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

You must be logged in to reply to this topic.Log in/Sign up

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