Anonymous User 15030067
(@anonymized-15030067)
Hey Adil,
Yes, this is possible. To place text in the four marked areas above you would need to override WooCommerce single product templates. To do so, you will first need to create a child theme to place all of the changes in (that way nothing is lost when you update WooCommerce or your theme). After that it is about finding the correct templates and copying theme into your child theme that you have created.
1. Copy price.php located at wp-content/plugins/woocommerce/templates/single-product/price.php to yourchildtheme/woocommerce/single-product/price.php
2. Change price.php to this, making it look like this (you can wrap your custom text with a span, remove the added space, and style it as needed).
3. Copy simple.php located at wp-content/plugins/woocommerce/templates/single-product/add-to-cart/simple.php to yourchildtheme/woocommerce/single-product/add-to-cart/simple.php
4. Change simple.php to this, making it look like this (you can style it to your preferences).
The examples above are done through HTML alone, I’d recommend making it the way you want with custom CSS.
-
This reply was modified 8 years, 11 months ago by
Anonymous User 15030067. Reason: Gists