Hi, I have found the below code to put the social share buttons under the images, however, ideally I would like them under the tabs on the right – are you able to help please?
remove_action( ‘woocommerce_before_single_product_summary’, ‘avia_close_image_div’, 20);
add_action( ‘woocommerce_before_single_product_summary’, ‘avia_product_share’, 20);
function avia_product_share() {
//share links on single post
avia_social_share_links();
echo “</div>”;
Thanks
Hey farrows,
Try using the filter ‘woocommerce_after_single_product_summary’.
add_action( 'woocommerce_after_single_product_summary', 'avia_product_share', 20);
If you need further assistance please let us know.
Best regards,
Victoria
Hi farrows,
Did you try the filter provided above?
Best regards,
Victoria
Yes, it went below both columns and therefore took up the full width of the page
Thanks
Hi,
Thank you for the update.
Try to adjust the priority value from 20 to 2 or replace the hook with this one.
add_action( 'woocommerce_after_single_product_summary', 'avia_product_share', 2 );
Please don’t forget to remove this line.
add_action( ‘woocommerce_before_single_product_summary’, ‘avia_product_share’, 20 );
Best regards,
Ismael