यदि आपने अपना कोई eCommerce वेबसाइट वर्डप्रेस पर woocommerce प्लगइन के साथ बनाया है और यदि आपका सवाल है how to change add to cart button text in woocommerce तो हम आपको बताना चाहेंगे आप बिलकुल सही आर्टिकल पढ़ रहे है क्युकी आज हम आपके साथ इस आर्टिकल में woocommerce वेबसाइट में add to cart बटन का text कैसे बदले इसके बारे में बताने वाले है तो चलिए ज्यादा देरी न करते हुए शुरू करते है आज का आर्टिकल how to change add to cart button text in woocommerce..
So let’s begin,
How to change add to cart button text in woocommerce
यदि आप अपने woocommerce वेबसाइट में add to cart बटन के text को बदलना चाहते है तो आप ऐसा बहुत ही आसानी से कर पायेंगे निचे दिए गए स्टेप को फॉलो करके चलिये जानते है कैसे
सबसे पहले आप एक Snippets नाम से एक wordpress plugin इनस्टॉल करें
Plugins >> Add New >> Search Snippets
Snippets plugin को करें
अब आपके वर्डप्रेस डैशबोर्ड में Snippets का आप्शन आ रहा होगा उस पर क्लिक करें
Snippets >> Add New Snippets
अब दिए कोड को कॉपी करके Snippets प्लगइन में पेस्ट करें
add_filter( 'woocommerce_product_single_add_to_cart_text', 'cw_btntext_cart' ); add_filter( 'woocommerce_product_add_to_cart_text', 'cw_btntext_cart' ); function cw_btntext_cart() { return __( 'Buy Now', 'woocommerce' ); } // To change add to cart text on single product page add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); function woocommerce_custom_single_add_to_cart_text() { return __( 'Buy Now', 'woocommerce' ); } // To change add to cart text on product archives(Collection) page add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' ); function woocommerce_custom_product_add_to_cart_text() { return __( 'Buy Now', 'woocommerce' ); }
Hurray ! आपके वेबसाइट का add to cart button अब buy now बटन में बदल चूका है आप अपने वेबसाइट पर विजिट करके देख सकते है
Conclusion
हम आशा करते है आपको आज का आर्टिकल पसंद आया होगा अगर आपको आज के आर्टिकल में कोई सवाल हो तो आप हमसे कमेंट बॉक्स में पूछ सकते है इस आर्टिकल को अपना कीमती समय देने के लिए आपका बहुत बहुत शुक्रिया आपका समय शुभ हो !
और आर्टिकल पढ़े
- how to skip cart page in woocommerce
- how to change add to cart button text in woocommerce
- Css code for flarum header and footer – flarum forum के हेडर और फुटर के लिए css code
- Buttonizer wordpress plugin to grow your social media engagement
- Free download self design elementor course template
- How to buy ahrefs on cheap price – सस्ते दामों पर ahrefs कैसे खरीदें ?
- WordPress ping list for fast indexing of new post or pages on google
- Best domain name registrar to buy cheap domain names
- Domain name kya hai – डोमेन नेम क्या है ?
- Best earphones under 200 – 200 रूपए के अन्दर-2 सर्वश्रेष्ठ इयरफ़ोन