Woocommerce: Adding a html tag under billing address

I am trying to add a html tag “

” under the Billing_Address_2 field. I read some documentation and tried this code.

    function red_text() {
echo '<p class="red_text" style="color:red;float:left;display:none">Hello World</p>';
}
add_action( 'woocommerce_after_billing_address_2_field', 'red_text' );

However, when I put it in my function.php theme, it just doesnt add the tag. Is there another way to add an html tag in the checkout page? If not, is my code wrong?

Read more here: Woocommerce: Adding a html tag under billing address

Leave a Reply

Your email address will not be published. Required fields are marked *