Single Product Summary Priority
-
I’m trying to wrap the single product short description in a div using the following snippet but for some reason its placing it after the add to cart form! (https://prnt.sc/pqig6p)
function short_desc_prefix(){ echo "<div class=\"short-desc-desktop\">"; } function short_desc_suffix(){ echo "</div>"; } add_action( 'woocommerce_single_product_summary', 'short_desc_prefix', 19); add_action( 'woocommerce_single_product_summary', 'short_desc_suffix', 21);
I would expect this to have wrapped the woocommerce_template_single_excerpt
/** * woocommerce_single_product_summary hook. * * @hooked woocommerce_template_single_title - 5 * @hooked woocommerce_template_single_rating - 10 * @hooked woocommerce_template_single_price - 10 * @hooked woocommerce_template_single_excerpt - 20 * @hooked woocommerce_template_single_add_to_cart - 30 * @hooked woocommerce_template_single_meta - 40 * @hooked woocommerce_template_single_sharing - 50 * @hooked WC_Structured_Data::generate_product_data() - 60 */
Any ideas? I contacted Astra theme developers but they sent me here!
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Single Product Summary Priority’ is closed to new replies.