Checkout Styling
To support stores that enable BigCommerce’s Optimized One-Page Checkout feature, you can customize the Optimized Checkout page’s styling within your theme. You do this by adding custom CSS to the optimized-checkout-webdav.css template file that we provide. You can copy the CSS below.
Function Names
Although you will see references to “Stencil” functions throughout this template file’s CSS, this version of the CSS is designed to be fully compatible with Blueprint themes.
Customization Options/Restrictions
As a theme developer, you are free to change classes’ contents – but do not nest elements, nor change any class names.
The structure and class naming are reserved because each class here maps to multiple Optimized Checkout elements. So renaming would break updates available in future Optimized Checkout enhancements.
Configuring the Desktop Viewport
Within the CSS file, to set up Optimized Checkout’s responsive features, you should configure the following breakpoint to define your preferred desktop viewport size:
For other customization options, please see the class descriptions below.
Deploying Custom CSS
To deploy your custom CSS to a BigCommerce store, follow these steps:
Customize the CSS file
Copy the CSS skeleton below and modify the optimized-checkout-webdav.css file with your custom styles.
Upload via WebDAV
Upload your customized optimized-checkout-webdav.css file via WebDAV. For a general overview of the process, please see this support article. For details on interacting with WebDAV, please see this article.
Classes Provided
Below is a summary of the classes provided in the template CSS, with corresponding page elements that they style. (These class names and mappings are subject to change, so please see the inline comments embedded in the file itself.)
CSS Skeleton
You can copy and modify the template optimized-checkout-webdav.css file’s current contents directly from this documentation, below: