Reply To: Position of product description


I can’t get the woocommerce hooks to work in the theme. The following code does nothing in the 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', 35 );

I tested this code, but is not working: (in my child theme functions.php)

function guacha_print_hello() {
  echo "<h1>HELLO</h1>";
add_action( 'woocommerce_single_product_summary', 'guacha_print_hello', 30 );

This code doesn’t work either:

add_action( 'after_setup_theme', 'guacha_add_action', 70);
function guacha_add_action() {
  add_action( 'woocommerce_single_product_summary', 'guacha_print_hello', 70 );

Is this a theme issue?


  • This reply was modified 3 weeks, 1 day ago by guacha.