Hi @bigmoxy
here is hooks for more idea. you need to add custom function in your active child theme.
THE HOOK NAME: woocommerce_single_product_summary hook.
THE TEMPLATES HOOKED (+priority order number) => corresponding template file name:
— woocommerce_template_single_title (5) => single-product/title.php
— woocommerce_template_single_rating (10) => single-product/rating.php
— woocommerce_template_single_price (10) => single-product/price.php
— woocommerce_template_single_excerpt (20) => single-product/short-description.php
— woocommerce_template_single_add_to_cart(30) => single-product/add-to-cart/ (6 files depending on product type)
— woocommerce_template_single_meta (40) => single-product/review-meta.php
— woocommerce_template_single_sharing - (50) => single-product/share.php
Example using add_action() WordPress function:
// define the woocommerce_single_product_summary callback function
function my_custom_action() {
echo '<p>Banner image goes to here</p>';
};
add_action( 'woocommerce_single_product_summary', 'my_custom_action', 15 );
This function has a priority number of 15 and will display “This is my custom action function” string text, between the product price and the product short description…
So you can change your priority number as per requirements.`
Thanks
Ahir Hemant
-
This reply was modified 3 years, 4 months ago by
Ahir Hemant.