Woocommerce Share Buttons

Home Forums Jevelin Theme Woocommerce Share Buttons

Home Forums Jevelin Theme Woocommerce Share Buttons

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • oneorzero
    Participant

    Hi

    I want to alter the woocommerce share buttons in particular the email button so it does a straight mailto link rather than doing a popup window then a mailto and maybe remove a few buttons. Whereabouts is the code for this?

    I have attached a image of the buttons from the woocommerce product page

    Attachments:
    You must be logged in to view attached files.

    Hi @oneorzero,

     

    I hope you are well today and thank you for your question.

     

    Its code is as following which you will find in the theme file jevelin/js/scripts.js on line number 630

     

        /* Share  */
        $(".sh-social-share-networks").jsSocials({
            _getShareUrl: function() {
                var url = jsSocials.Socials.prototype._getShareUrl.apply(this, arguments);
                return "javascript:window.open('" + url + "', '', 'menubar=no, width=500, height=300')";
            },
            showLabel: false,
            showCount: "inside",
            shares: ["facebook", "twitter", "googleplus", "email", "pinterest"]
        });

     

    Best regards,
    Shufflehound team

    oneorzero
    Participant

    how do you remove the woocommerce share buttons?

    You can remove it by adding the following CSS code in the Custom CSS code option of your theme on the below path.

     

    Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code

     

    .woocommerce .product .product_meta .woo-meta-share {
        display: none;
    }
Viewing 4 posts - 1 through 4 (of 4 total)