Add a Cart

Hi, I’m using the woocommerce short code for the add to cart

.single_add_to_cart_button {
font-size: 40px;
}

I don’t want to show the price nor the icon cart on the button

I was able to remove the icon but not the price

.woocommerce .button.product_type_simple:before, .woocommerce .button.single_add_to_cart_button:before, .woocommerce-page .button.product_type_simple:before, .woocommerce-page .button.single_add_to_cart_button:before {
content: “”;
}

Hi Edwin

Removing price from single product page is not a available option in our theme.
To achieve what exactly you want, you need to write a custom codes, which we dont suggest.
You can use the following code which I have tested the below code in my site and seems it working. If it doesnot work at your end, it might be conflicting with something.
And we could not dive into fixing the custom code, as we dont offer custom code fixes.

remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );

Hope it helps.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.