Moving Product Tabs - by dougflo - on WordPress WooCommerce support

This topic has 12 replies, 4 voices, and was last updated 8 years, 4 months ago ago by Eva Kemp

  • Avatar: dougflo
    dougflo
    Participant
    December 4, 2015 at 16:34

    I have added this code, but it does not remove the tabs underneath on the single product page.

    remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 10 );
    add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 60 );

    Please, contact administrator
    for this information.
    11 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 4, 2015 at 16:50

    Hello,

    You can find the correct code here:
    https://docs.woothemes.com/document/editing-product-data-tabs/

    Add it to functions.php file.

    Best regards,
    Jack Richardson.

    Avatar: dougflo
    dougflo
    Participant
    December 4, 2015 at 17:01

    Hi Jack

    I don’t think that has the references to moving the tabs to the right of the products image which is what I am trying to achieve. Thanks

    Avatar: Eva
    Eva Kemp
    Support staff
    December 4, 2015 at 17:03

    Hello,

    We don’t see any image in your post.
    Please resend a screenshot what you want to achieve.

    Thank you.

    Regards,
    Eva Kemp.

    Avatar: dougflo
    dougflo
    Participant
    December 4, 2015 at 19:07

    I have attached a link to the image. The code has moved the description to the right of the main photo but has also left it underneath (The red circled area is the one we want to remove)

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    December 4, 2015 at 20:08

    Hello,

    If you want to remove Product Description tab then add this code in functions.php file:

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

    Regards,
    Eva Kemp.

    Avatar: dougflo
    dougflo
    Participant
    December 4, 2015 at 20:31

    We have already used that to remove the More Info and Reviews tab. We don’t want to remove the Description. We have used the code in the first post to move it to the top right, just about the product options. We simply want to remove the duplicate that is circled in red.

    At the moment it is showing the Description at the right hand side of the picture and in the red circled area.

    Avatar: Eva
    Eva Kemp
    Support staff
    December 7, 2015 at 10:42

    Hello,

    You said:

    We simply want to remove the duplicate that is circled in red.

    You circled “Description” tab in your screenshot. I gave you the code how to remove it.

    So please clarify what is wrong.

    Don’t you need to remove description tab?

    Regards,
    Eva Kemp.

    Avatar: dougflo
    dougflo
    Participant
    December 8, 2015 at 15:20

    If you look at the image we posted higher in the thread you can see that the product description is on the product page twice, once right of the product image (this is how we would like it) and once underneath the product image which is circled. The circled description is what we would like to remove but keep the description that is on the right of the product image.

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

    That code you gave us breaks the website and causes it to show a white page.

    Regards.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    December 8, 2015 at 15:23

    Hello,

    Please provide us with wp-admin and FTP credentials in Private Content.

    Regards,
    Robert Hall.

    Avatar: dougflo
    dougflo
    Participant
    December 8, 2015 at 17:08

    See logins below

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    December 8, 2015 at 17:38

    Hello,

    I’ve edited the code in child functions.php file to:

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

    and added short description for the product “Rosa Faia Twin Range T-Shirt Bra”:
    http://storage3.static.itmages.com/i/15/1208/h_1449592710_7265419_f4811b06bf.png

    Please check this product now.

    Regards,
    Eva Kemp.

  • Viewing 12 results - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.