Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #538761

    Hi,

    I’m using this snippet

    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', 30 );

    But it doesn’t remove the product data tabs from its original position.

    View post on imgur.com

    Is there any theme’s file I need to edit?

    Thanks!

    #538774

    Hi senso!

    Please look at the following snippet here:
    https://gist.github.com/jameskoster/5133466

    and let us know if that helps you out.

    Thanks a lot for your time

    Best regards,
    Basilis

    #538801

    Hi Basilis,

    Certainly not. That snippet is to remove the product tabs. I’d like to move it, not remove it. In addition to that, not hiding it using CSS.

    • This reply was modified 9 years, 1 month ago by senso.
    #540042

    Hi!

    Where do you want to move the product tabs? Please use this code instead:

    //move product tabs
    add_action('init', 'init_mod', 10);
    function init_mod() {
    	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', 20 );
    }

    Regards,
    Ismael

    #541310

    That works perfectly Ismael! Thanks!

    #541342

    Hi!

    glad you got it short out.
    Please do let us know if you need anything else regarding our themes, we will be more than happy to assist you.

    Best regards,
    Basilis

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.