Hi,
I am developing a site using the WooCommerce plugin for Wordpress, and I am trying to re-adjust the order of the loop on my product page so that the title displays next to the image instead of above it. I have not had trouble getting the title moved, but for some reason, I cannot remove it from its original location (it appears twice). Can someone please help me figure out what I’m doing wrong.
Here is what the original woocommerce-hooks.php file looked like:
[php] add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_title’, 5);
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’, 10);
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20);
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_meta’, 40);
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_sharing’, 50);[/php]
Here is what I changed:
[php] add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’, 10);
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_title’, 15);
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20);
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_meta’, 40);
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_sharing’, 50);
[/php]
I also tried to add this instead:
[php] remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_title’, 5);
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_title’, 15);
[/php]