Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @stephenboluwatife2005

    To remove the “Additional Information” tab from the single product pages, you can use the following PHP hook. This code should be added to your theme’s functions.php file or in a custom plugin designed to handle custom modifications. Here’s the PHP code snippet:

    add_filter( 'woocommerce_product_tabs', 'remove_additional_information_tab', 98 );
    
    function remove_additional_information_tab( $tabs ) {
        // Check if the 'additional_information' tab is set and remove it
        if (isset($tabs['additional_information'])) {
            unset($tabs['additional_information']);
        }
    
        return $tabs;
    }

    This code uses the woocommerce_product_tabs filter to modify the tabs on the product pages. It checks if the ‘additional_information’ tab is present and removes it from the array of tabs. The priority is set to 98 to ensure it runs after most other modifications to the tabs, avoiding conflicts.

    After adding this snippet to your functions file, the “Additional Information” tab should no longer appear on your product pages. As always, it’s a good practice to check the functionality on a staging environment before implementing it on your live site.

    Thread Starter stephenboluwatife2005

    (@stephenboluwatife2005)

    it work but when i active it the option did not show did not click but when i deactive it the option work and the addtional information comes back

    Sorry, not sure what you’re saying. However, make sure you’ve cleared your cache and viewed this in an incognito browser as well.

    anastas10s

    (@anastas10s)

    Hi there ?? We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘remove additonal information’ is closed to new replies.