• Resolved Tim Burkart

    (@bigmoxy)


    Why do product variations display in the additional information tab? Is CSS the best way to hide it? It serves no purpose for me.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Gerhard Potgieter

    (@kloon)

    Hi, the additional information tab is used to give an overview of all the variation options available as well as listing all attributes and sizes defined for the product.

    To hide it you can either do it via CSS, or you can use the WordPress filter woocommerce_product_tabs and unset it via PHP

    
    add_filter( 'woocommerce_product_tabs', 'custom_remove_additional_info_tab', 99 );
    function custom_remove_additional_info_tab( $tabs ) {
        unset( $tabs['additional_information'] );
        return $tabs;
    } 
    
    Thread Starter Tim Burkart

    (@bigmoxy)

    Thank you for the code snippet Gerhard!

    Hi, I know I am late to this party, but I also want to remove the additional information link on the side of the woocommerc product pages. I tried one solution that completely crashed my website, so I am a bit gun shy and may need someone to slow walk me through this. I know how to add css but when you went into using wordpress filer and unsetting it, you lost me…….help please ??

    ps, just adding the above code to the additional css section? i get all kinds of unexpected token messages.

    Thread Starter Tim Burkart

    (@bigmoxy)

    Hi @compassioniseverything,

    The code above is a PHP code snippet and should be added to your themes functions.php file. It is not CSS.

    Alternatively you can turn off the display by unchecking “visible on the product page” which can be found in the Product Data section –> Attributes. If you don’t see it right away click on the word expand on the right side of the page.

    Thank you for your patience and instruction. I was able to add the snippet to the functions.php file.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Product variations and additional information’ is closed to new replies.