WordPress HowTo

How-to guide for WordPress

  • Home
  • Plugins
  • Themes
  • Contact
    • Privacy Policy
  • About

How to Make Your WooCommerce Add to Cart Buttons Bigger

Do WooCommerce add to cart buttons look smaller on your website? Do you want to make the size bigger or make it take the full width of the content area? In this article I will show how you can easily resize a WooCommerce add to cart button to full width.

This is how a WooCommerce add to cart button looks by default on the product page.

default WooCommerce add to cart button

In order to change the size of the button go to Appearance > Customize from your WordPress admin dashboard. Select Additional CSS and enter the following custom CSS code,

.single_add_to_cart_button.button.alt {
    display: block;
    width: 100%;
}

Click Publish and close the window.

Your WooCommerce add to cart buttons will now look bigger and take the full width of the content area.

resized WooCommerce add to cart button

That’s all you need to do to make your WooCommerce add to cart buttons bigger. If you have any suggestions or the code doesn’t work on your site, let me know in the comments.

Related

Written by Noor Alam · Categorized: wordpress

Comments

  1. Alice Sheridan says

    Fab! Have searched a few sites and the codes didn’t work, but this did 🙂 Thank you!
    I’ve even changed the font size so it matches the Apple Pay button

    .single_add_to_cart_button.button.alt {
    display: block;
    width: 100%;
    font-size: 15px;
    }

    Now I’m trying to do the same with the ‘Proceed to Checkout’ button which appears on the Basket page. I’ve tried various things, but none working (because I’m not a coder and I don’t know what I’m doing!) Any ideas?

    .proceed_to_checkout_button.alt {
    display: block;
    width: 100%;
    font-size: 15px;
    }

    Reply
  2. Alice Sheridan says

    I fixed it, and made the check-out text on the button bolder and the button colour a bit highlighted, so sharing here 🙂

    .wc-proceed-to-checkout .checkout-button.button.alt.wc-forward {
    font-size: 15px !important;
    font-weight: bolder !important;
    width: 100% !important;
    background-color: #37a6d6;
    }

    Reply
    • Noor Alam says

      @Alice, Thank you for sharing the code 🙂

      Reply
  3. Cheryl says

    How to change my size of the “add to cart” on my site, I have done many ways but cannot make it, could you please let me know how to do?

    Reply
    • Noor Alam says

      @Cheryl, Are you using WooCommerce?

      Reply

Leave a Reply to Alice Sheridan Cancel reply

Your email address will not be published. Required fields are marked *

Search WP HowTo

Recent Posts

  • Custom Donations for WordPress PayPal Donate Buttons
  • Gmail SMTP Plugin Cc Configuration
  • How to Add a Reply-To Address in the Gmail SMTP WordPress Plugin
  • What Does a Security Challenge Mean on PayPal?
  • WP PayPal Button Integration with Contact Form 7
  • Can People See Your Address on PayPal?
  • Mailchimp Integration for WP PayPal Plugin
  • How to Show a Text Box at WP PayPal Checkout to Collect Custom Data from Buyers
  • How to Add a Recurring Price Field to a PayPal Subscription Button
  • How to Add a Quantity Field to a PayPal Button

Featured Add-ons

Buy Now Custom Amount for PayPal

Buy Now Discount for PayPal

Contact Form 7 Integration for PayPal

Custom Input for PayPal

Mailchimp Integration for PayPal

Product Variations for PayPal

Variable Quantity for PayPal

Variable Subscription for PayPal

Custom Donations for PayPal

Reply-To for Gmail SMTP

Cc for Gmail SMTP

Disable Right Click on Video.js

Copyright © 2023 · WordPress HowTo

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAcceptRead More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT