New Landing How can we help? Themeforest Theme Support Dante Remove Woocommerce tabs

Viewing 15 posts - 1 through 15 (of 20 total)
  • Posted in: Dante
  • #100925
    lfhdesign
    Member
    Post count: 15

    Hi Guys,

    I would like to remove the WooCommerce tabs on my product pages but the recommended way of doing it doesn’t work:
    ——
    add_filter( ‘woocommerce_product_tabs’, ‘woo_remove_product_tabs’, 98 );

    function woo_remove_product_tabs( $tabs ) {

    unset( $tabs[‘description’] ); // Remove the description tab
    unset( $tabs[‘reviews’] ); // Remove the reviews tab
    unset( $tabs[‘additional_information’] ); // Remove the additional information tab

    return $tabs;

    }

    ————-

    Can you provide an alternate way?

    I would prefer a non-css waym but if css is the only way to go then that would be ok ๐Ÿ™‚

    #100939
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi!

    Do you mean all the tabs or just specific ones?
    You could also remove them manually in the files, for example the additional informations from additional-information.php

    Cheers

    #100953
    lfhdesign
    Member
    Post count: 15

    I would like to remove:

    • Description
    • Additional information
    • Reviews
    • email form
    • feedback form
    • Social Share
    #100954
    Melanie – SUPPORT
    Member
    Post count: 11032

    You could also remove them manually in the files, for example the additional informations from additional-information.php

    You can find all the content of the woocommerce tabs in the same folder as the additional-information.php file. Feel free to edit them ๐Ÿ™‚

    #100962
    lfhdesign
    Member
    Post count: 15

    Would that be in the tabs.php file?
    What exactly should I edit?

    #100981
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    That code should work. Where did you insert that code? You should insert at functions.php of child theme.

    add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
    function woo_remove_product_tabs( $tabs ) {
    unset( $tabs['description'] ); // Remove the description tab
    unset( $tabs['reviews'] ); // Remove the reviews tab
    unset( $tabs['additional_information'] ); // Remove the additional information tab
    return $tabs;
    }

    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #100997
    lfhdesign
    Member
    Post count: 15

    Mohammad: Yes I inserted it into the child theme function.php file. Doesn’t work.

    #100999
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me wordpress admin login detail so i can inspect this issue.
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #101018
    lfhdesign
    Member
    Post count: 15
    This reply has been marked as private.
    #101046
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am getting ERROR: User has not been activated.
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #101050
    lfhdesign
    Member
    Post count: 15
    This reply has been marked as private.
    #101052
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    ERROR: The password you entered for the username dante is incorrect. Lost your password?
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #101057
    lfhdesign
    Member
    Post count: 15
    This reply has been marked as private.
    #101079
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolve the issue by using given below code at functions.php of child theme :-
    function sf_product_accordion() { return true; }
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #101130
    lfhdesign
    Member
    Post count: 15

    Mohammad: Brilliant work! Thanks a lot.

    I have a few challenges with some prices that I need hidden but I will open up another ticket – I hope you can help ๐Ÿ™‚

    Thanks!

Viewing 15 posts - 1 through 15 (of 20 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