Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins
00 Days
00 Hours
00 Minutes
00 Seconds

How To Customize “Proceed to Checkout” Button Styles in WooCommerce Cart?

To improve the visual appeal of your WooCommerce Cart Page, you can customize the design of the “Proceed to Checkout” button. This customization enables store owners to match the checkout button’s appearance with their brand colors and overall design theme. For instance, you can change the button color to coordinate with a holiday theme. You can apply a stylish design to your checkout button by using the following code snippet.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
add_action('wp_head', 'ts_cart_proceed_to_checkout_button_styles');
function ts_cart_proceed_to_checkout_button_styles() {
if (is_cart()) {
echo '<style>
.wc-proceed-to-checkout .button.checkout-button {
background-color: skyblue;
border-radius: 18px;
box-shadow: 4px 4px 0px 0px #C38E56;
}
</style>';
}
}
add_action('wp_head', 'ts_cart_proceed_to_checkout_button_styles'); function ts_cart_proceed_to_checkout_button_styles() { if (is_cart()) { echo '<style> .wc-proceed-to-checkout .button.checkout-button { background-color: skyblue; border-radius: 18px; box-shadow: 4px 4px 0px 0px #C38E56; } </style>'; } }
add_action('wp_head', 'ts_cart_proceed_to_checkout_button_styles');

function ts_cart_proceed_to_checkout_button_styles() {
    if (is_cart()) {
        echo '<style>
            .wc-proceed-to-checkout .button.checkout-button {
	           background-color: skyblue;
	           border-radius: 18px;
	           box-shadow: 4px 4px 0px 0px #C38E56;
             }
        </style>';
    }
}

Output

The above code snippet will style the Proceed to Checkout button on the WooCommerce Cart Page. The button will have a sky-blue background color, a border radius, and a box shadow for a visual effect.

Proceed to Checkout" Button Styles in WooCommerce Cart

In another scenario, the WooCommerce cart page shows the default “Proceed to checkout” button style as shown below.

Proceed to Checkout" Button Styles in WooCommerce Cart

If you have external payment options such as PayPal in your WooCommerce store, you can remove Proceed to Checkout button from cart page in WooCommerce.

Browse more in: Code Snippets, WooCommerce How Tos, WooCommerce Tutorials

Share It:

Subscribe
Notify of


0 Comments
Newest
Oldest
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible.

Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

By using our site, you acknowledge that you have read and understood our Privacy Policy and Terms & Conditions.