Specific, how do i remove "Your order" or the full function? By using a code snippet in functions.php (child-theme)
It can be found by:
<h3 id="order_review_heading"><?php esc_html_e( 'Your order', 'woocommerce' ); ?></h3>
in form-checkout.php.
I would prefer some code instead of coping the file to child-theme and alter the file.
Specific, how do i remove "Your order" or the full function? By using a code snippet in functions.php (child-theme)
It can be found by:
<h3 id="order_review_heading"><?php esc_html_e( 'Your order', 'woocommerce' ); ?></h3>
in form-checkout.php.
I would prefer some code instead of coping the file to child-theme and alter the file.
Share Improve this question asked Nov 19, 2019 at 21:07 ChristianChristian 1313 bronze badges 2 |1 Answer
Reset to default 2By injecting CSS (not optimal):
function remove_message_text() {
echo '<style type="text/css">#order_review_heading { display: none; } </style>'; // Remove original text "Your Order"
}
add_action( 'woocommerce_checkout_before_order_review', 'remove_message_text');
#order_review_heading { display : none; }
– Kaperto Commented Nov 19, 2019 at 22:13