1

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.

2
  • 1
    you can try with CSS #order_review_heading { display : none; } Commented Nov 19, 2019 at 22:13
  • You are right, add .woocommerce-checkout #order_review_heading { display:none; } to the style.css also does it! thanks. Commented Nov 21, 2019 at 21:12

1 Answer 1

2

By 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');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.