New Landing How can we help? Atelier Removing woocommerce hooks

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #271821
    tonio1012
    Member
    Post count: 6

    Hi, I´m trying to remove the share icons on the product view.

    In functions.php (in my child theme) I put this:

    remove_action( ‘woocommerce_single_product_summary’, ‘sf_product_share’, 45);

    but it isn´t working…
    It keeps showing the Share Hook. How Can I do ?
    Thanks a lot

    #271936
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    function sf_product_share() {
                return '';
    }

    Thanks
    Mohammad

    #272678
    tonio1012
    Member
    Post count: 6

    thanks

    #272684
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome and glad 🙂 to help you.
    Thanks
    Mohammad

    #318333
    vaneeka
    Member
    Post count: 16

    Hello Mohammad,
    I can’t move the sf_product_share hook,
    with the others hooks I have added the similar code on function.php:

    remove_action( ‘woocommerce_single_product_summary’, ‘sf_product_share’, 45 );
    add_action( ‘woocommerce_single_product_summary’, ‘sf_product_share’, 20 );

    but with the sf_product_share hook the code written above shows two sf_product_share hook, I can’t figure out what am I doing wrong.. 🙁

    sorry for bad english

    Thanks a lot
    Vaneeka

    Attachments:
    You must be logged in to view attached files.
    #318580
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Vaneeka,

    Please add this to Theme Options => Custom CSS:

    .woocommerce div.product div.summary .sf-share-counts {
        display: none;
    }
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register