...

View Full Version : Problems using Woocommerce hooks



sakina
10-22-2012, 08:05 AM
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:



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);


Here is what I changed:


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);


I also tried to add this instead:


remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5);
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 15);



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum