Woocommerce: Add html tag under a field

0

I'm trying to add an html tag "< p >" below the Billing_Address_2 field. They recommended me to do it with a hook and this is what I tried:

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

What should happen is that you add a red p-label under the address field, but it does not show any results. Is there a method other than using hooks to put a label on the checkout page? And if not, what's wrong with my code?

    
asked by Jorge 06.04.2017 в 01:00
source

1 answer

0

Hi, I suggest you read the codex of woocommerce, here you will find what you are looking for.

link

    
answered by 07.04.2017 / 23:35
source