Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #352157

    I have partially succeeded in moving the Product tabs underneath the image and thumbnails + title / short description and having the woo commerce tabs be full width by changing the 1 to 5 in the file enfold/woocommerce-config/config.php

    #
    # display tabs and related items within the summary wrapper
    #
    remove_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 10 );
    //add_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 1 );
    add_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 5 );

    However, I would like to have this working by using my functions.php in my enfold child theme so updates will not break this.

    However whatever I try, I always end up with 2 blocks of tabs and the first block never gets removed.

    In my function.php I am trying the following:
    // Removes tabs from their original location
    remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 1 );
    add_action( ‘woocommerce_after_single_product_summary’, ‘woocommerce_output_product_data_tabs’, 5 );

    #352383

    Hi None!

    Thank you for using Enfold.

    You can use this in the functions.php to adjust the position of the product tabs.

    add_action('init', 'avf_move_product_output');
    function avf_move_product_output() {
    	remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
    	remove_action(    'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 1 );
    	add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 5 );
    }

    Cheers!
    Ismael

    #352455

    PERFECT! – thank you VERY MUCH!

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

The topic ‘Moving woocommerce tabs underneath the image and short description – full width’ is closed to new replies.