Change Add to Cart Button Text woocommerce, WordPress.

You Can Change the Common Button ” Add to Cart” with Special text or with an image. You can add “Buy Now”, “Add to Bag”, “Book Now” or “Image” whatever custom text or image you like. This can be done without a Plugin and make the Custom Button.

Step

  • Open WordPress “Admin Panel”, Open theme “Options“.
  • Open “Custom CSS“.
  • Add the below code here. (Note: Add the PNG image in Media and Copy Paste the PNG link in Code.
/* Text ti Pic Add to Cart */ .woocommerce .product .add_to_cart_button.button{ text-indent: -9999px; border-radius: 3px; background-image: url('image url.png'); background-repeat: no-repeat; background-size: contain; margin-left: auto; margin-right: auto; padding: 0px 70px 0px 70px; }

Other Method Step

  • Open You WordPress Admin Page
  • From Sidebar select “Appearance” then “Theme Editor
  • From “Theme Files” select “functions.php
  • Past the below code in function.php.
// 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' ); }

If this code is not Working then Install the regular Plugin “Code Snippets

Add new “Snippet
Paste the Above Function Code

Developers always try that everything happens without a Plugin because most of the Plugins affect the speed of the Website. So, Everything can be done without Plugins. woocomerce is the best e-commerce store provider and offers you International Store Standards. Filter Skills also contributes with their Clients for best Services and learners for Selective IT Skills.

Categories: Web Design| By |

Subscribe to get Latest News and Tech Deals of the week

We're committed to your privacy. iCONIFERz uses the information you provide to us to contact you about our relevant content, and services. You may unsubscribe at any time.

Related

  • Empty Cart Button for WooCommerce makes the e-commerce store outstanding. International Standards for making the Cart Clear or Empty is natural. If Filled then How Customer removes every Product from Cart One-by-One. That’s very difficult for clients or […]

  • Know These Cutesy Themes for an Online Baby Products & Toys Shop

    [ad_1]

    Busy parents these days scroll through different websites and online apps to get things for their kids. They hardly get the time to visit supermarkets or big shops, but […]

  • 2 Themes That Are Professional Website Templates: Enterprise and Metric WordPress Themes

    [ad_1]

    If you’re looking for a website design for your business website, style and design of the website template you use counts big time. I can tell you from personal […]

  • WordPress SEO Plugins – WordPress SEO by Yoast

    [ad_1]

    Without a single doubt, WordPress SEO by Yoast is one of the best optimization plugins that have ever been produced. To rank highly in the search engines, an internet marketer using WordPress will […]

  • What Makes WordPress the Best Choice for Developing Small Ecommerce Stores?

    [ad_1]

    WordPress is no more confined to being a simple publishing platform. It is now considered to be one of the most powerful CMS. Several reputed names like BBC, Mashable, CNN, […]

  • Web Designing in India

    [ad_1]

    Echrontech – best web designing company in Delhi, India, we are excited to create a web experience that attracts customers. Trust to create a unique, usable and powerful web design, India team which probably displays the image […]

  • Rapid Web Development Using PHP Frameworks

    [ad_1]

    Web development these days often involves creating dynamic websites which allow user interaction and the organization of large amounts of data. As a server-side language, commonly used by web developers to create such websites, PHP […]

  • Common ECommerce SEO Mistakes to Avoid

    [ad_1]

    Mistake No. 1: Not Optimizing PageSpeed for Every Page

    It can be observed that Page Speed is usually optimized only for a homepage. Category and product pages, which are conversion pages, should not be ignored so […]

Subscribe to get Latest News and Tech Deals of the week

We're committed to your privacy. iCONIFERz uses the information you provide to us to contact you about our relevant content, and services. You may unsubscribe at any time.

Join Us

Google News Icon, iconiferz
Flipboard Icon, iconiferz

Online Tools

iCONIFERz,Online Services for Business, Web Designing, Social Media Marketing, Web Design

Latest Post