• Resolved chidoleet

    (@chidoleet)


    Hello,
    I am completely lost so I come to you for advice.
    I need to move “product data tabs” next to product gallery. Here is the screenshot for better overview https://i.imgur.com/RCNw1GL.png .

    I used this code which I thought would work but unfortunately it’s not working.

    function move_elements() {
    remove_action( 'woocommerce_after_single_product_summary','woocommerce_output_product_data_tabs', 10 );
    remove_action( 'woocommerce_single_product_summary','woocommerce_template_single_excerpt', 20 );
    
    add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 10 );
    add_action( 'woocommerce_after_single_product_summary','woocommerce_output_product_data_tabs', 20 );
    }

    I will be glad for any advice, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • What calls the move_elements() function?

    I should try removing that line and its closing bracket. Just have lines 2 – 5.

    Thread Starter chidoleet

    (@chidoleet)

    Ahh thanks alot! Someone else recommended to me. Now it’s working, big thanks.

    laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Glad to hear this helped!

    I’m going to mark this as Resolved now, but please feel free to open a new thread if you have any other questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product data tabs – change position’ is closed to new replies.