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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: