Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

Does anyone know how to add text on PHP through WordPress?

hvaandres
hvaandres

I added some text for the "Add to cart" button in the following link: https://yournextfence1.wpengine.com/product/seclusions-quick-builder/#choose-fence-height.

However, I have an accordion for multiple selections of items and every single selection has a quantity box, but I don't know how to add the text "quantity" in every single selection on the right side of the box that represents the quantity.

The code that I added to the main function.php file was

add_action( 'woocommerce_before_add_to_cart_quantity', 'bbloomer_echo_qty_front_add_cart' );

function bbloomer_echo_qty_front_add_cart() {
echo '

Quantity:
';
}

Does anyone have any ideas on how to add a text on the right side or bottom side from the quantity box?

3 years ago

Voters

Comments

TopNew
1
hvaandres
hvaandres

image

3 years ago
Load more