php - Woocommerce: Adding a html tag under billing address -


i trying add html tag "< p >" under billing_address_2 field. read documentation , tried 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 put in function.php theme, doesnt add tag. there way add html tag in checkout page? if not, code wrong?


Comments