Home Forums WoodMart support forum hide sku, category… sigle product page

hide sku, category… sigle product page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #322956

    Toni Tarres
    Participant

    I need hide the sku, categories, label and share buttons that there are in single product page.
    Add a pic of the product.

    Thanks.

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

    Luke Nielsen
    Keymaster

    Hello,

    In order to remove SKU, categories, tags, and share buttons, please, try to add this code to the functions.php file in your child theme

    if ( ! function_exists( 'wd_single_remove_category' ) ) {
    
        function wd_single_remove_category() {
            remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
            remove_action( 'woocommerce_single_product_summary', 'woodmart_product_share_buttons', 60 );
    
        }
    
        add_action( 'wp', 'wd_single_remove_category', 1200 );
    }

    Kind Regards

    #323016

    Toni Tarres
    Participant

    Now, sku, categories and labels is disabled.
    But not the share buttons.
    Can I help me please?

    Thanks

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

    Luke Nielsen
    Keymaster

    Hello,

    I edited the code I added above, I increased the priority in “add_action” to 1200, now it must work.

    https://monosnap.com/file/CJlRJf5zuop7yfvwGoxDDIUGIKpDyo

    Kind Regards

    #323141

    Toni Tarres
    Participant

    Now works correctly.
    Thank you very much.
    But, another question, sorry…
    This two lines, of below of the single product can disabled too? (add pic)

    Thank you!

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

    Luke Nielsen
    Keymaster

    Hello,

    In order to remove two lines below of the single product, please, try to add this custom CSS in Theme Settings -> Custom CSS -> put this code in the field “Global Custom CSS”.

    .single-product-page .product-tabs-wrapper {
      display: none;
    }

    Kind Regards

    #323215

    Toni Tarres
    Participant

    Now works correctly.

    Thank you for all!

    #323304

    Luke Nielsen
    Keymaster

    Hello,

    We are glad that your issue has been resolved.

    If you do not mind, can you please leave a 5 stars rating for our Theme & Customer and Technical Support by going here: http://themeforest.net/downloads It will allow us to release more updates and provide dedicated support in the future.

    Have a wonderful day.

    Kind Regards

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘hide sku, category… sigle product page’ is closed to new replies.