将以下代码添加到主题的functions.php中,
remove_action('woocommerce_single_product_summary','woocommerce_template_single_price',10);
add_action('woocommerce_single_product_summary','woocommerce_template_single_price',25);
尝试更改表示钩子优先级的值25。优先级按顺序
- @hooked woocommerce_template_single_title – 5
- @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