How to place text inside single_variation_wrap below add to cart button
-
Hi,
I’m attempting to add a text below the add to cart button on the product pages. I found the following code. This code positions the text below the add to cart button but outside of the single_variation_wrap class. Ideally the text would be inside of the single_variation_wrap and inside the woocommerce-variation-add-to-cart variations_button class.
add_action( ‘woocommerce_after_add_to_cart_button’, ‘content_after_addtocart_button’ );
function content_after_addtocart_button() {
echo ‘<div class=”content-section”>Add Your HTML, Text Or Image Content Here!</div>’;
}Does anybody have an idea how I can achieve this?
thanks a lot for your help.
- The topic ‘How to place text inside single_variation_wrap below add to cart button’ is closed to new replies.