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

  • Make Money by Creating Exciting Custom WordPress Themes

    [ad_1]

    Can you really make money by building Custom WordPress Themes? Yes you can. There are some people who earn a considerable amount of money doing just that and there’s no reason why others […]

  • WordPress Plugins – Free at MaxBlogPress

    [ad_1]

    MaxBlogPress is one site I have found to be very useful. They have a lot of good information there. I like their slogan “WordPress Plugins for charging up your wordpress blog for MAX traffic and […]

  • Guide to Install WordPress

    [ad_1]

    Establishment of WordPress from WordPress.org

    Establishment of WordPress:

    Introduce the neighborhood servers

    Make another Database from phpmyadmin

    Make the username and Password for localhost

    Download from WordPress.org

    Refresh the database points of interest

    Set the WordPress name

    Spare the record of WordPress in htdocs of […]

  • Minimalism and Maximalism, What Is Maximalist Web Design?

    [ad_1]

    Since the mid-2000s, the driving trend behind web design has been minimalism. Minimalist web design is based on the idea that less is more when it comes to creating an attractive, easy to […]

  • What Is Responsive Web Development?

    [ad_1]

    Responsive layout and responsive design are the buzz words in the world of web design that keep a lot of people on their toes and help them make sure that they are doing everything right and […]

  • 7 Steps to Building a Successful eCommerce Business

    [ad_1]

    With the eCommerce industry booming across Europe, and Cyber Monday confirmed as the largest online sales day on record, there is now more incentive than ever for entrepreneurs and bricks and mortar retailers […]

  • Free WordPress Plugins

    [ad_1]

    WordPress is one of the most used software applications today. It has become an essential part of any blog site. This wide popularity is attributed to many unique features depending on the WordPress plugin that you use. Nowadays, […]

  • Manually Updating a Local WordPress Installation Using Windows XP

    [ad_1]

    Introduction

    Just recently, I updated WordPress from 2.8 to 3.0. Most tutorials including WordPress’s Codex, tell you how to update for a live blog, which is stored at your web host’s server. I […]

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