Please Note: This comes with no support from myself or from Income School as it is only a proof that the ability exists to run Woocommerce within Acabado while maintaining the speed benefits. Use at your own risk, I don’t have the ability to make updates to this content.
One of the things which have driven people crazy with Acabado is the fact that WooCommerce won’t load, this makes it near impossible to have an “on-site” storefront. Today I show you how to enable WooCommerce In Acabado using the plugin Code Snippets to enable the requirements and clean up the front end display for your users.
Please note this will require the plugin Code Snippets as you need to inject the theme support functionality for WooCommerce. This is the major reason why this doesn’t function in the theme by default, it could be added to functions.php but you would then have to add it every time you updated the theme manually.
Please read and install this code snippet first
If you don’t want to add Code Snippets I’ll give you the one part you HAVE to add to functions.php to add the functionality which allows WooCommerce to function.
function WooCommerce_In_Acabado() {
add_theme_support( 'woocommerce' );
}
add_action( 'after_setup_theme', 'WooCommerce_In_Acabado' );
<script src="https://js.stripe.com/v3/"></script>
Once you enable WooCommerce for the theme the Custom CSS below helps to style the buttons to match the rest of the Acabado theme setup with black buttons and white text.
.woocommerce ul.products li.product .button {
margin-top: 1em;
width: max-content;
background-color: #515151;
}
a.button.wc-backward {
margin-top: 1em;
width: max-content;
background-color: #515151;
}
.woocommerce span.onsale {
width: 50px;
height: 50px;
background-color: #5be05d;
color: #fff;
}
a.button.wc-forward {
margin-top: 1em;
width: max-content;
background-color: #515151;
}
.woocommerce button.button {
width: max-content;
background-color: #515151;
}
.woocommerce button.button:hover {
width: max-content;
background-color: #05cc14;
}
.woocommerce #review_form #respond .form-submit input {
left: auto;
width: max-content;
background-color: #515151;
}
@media (min-width: 960px) {
.woocommerce-page .widget-area {
float: left;
width: calc(25% - -6px);
padding-left: 0px;
border-left: 0px solid #f0f0f0;
}
.woocommerce-page .site-main {
width: calc(75% - 15px);
float: right;
padding-left: 15px;
}
}
@media (min-width: 576px) and (max-width: 959px){
.woocommerce-page .widget-area {
width: calc(100% - -6px);
padding-left: 0px;
display: inline-block;
border-left: 0px solid #f0f0f0;
}
.woocommerce-page .site-main {
width: calc(100% - 0px);
float: left;
padding-left: 0px;
}
}
.site-content .widget-area button {
display: -webkit-inline-box;
margin: 0 auto;
}
.widget-title {
border-radius: 3px;
padding: 5px;
}
.woocommerce .cart .button, .woocommerce .cart input.button {
float: none;
background-color: #363940 !important;
width: max-content;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
background-color: #84878c;
text-decoration: none;
background-image: none;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button{
float: none;
background-color: #363940 !important;
width: max-content;
}
.woocommerce .woocommerce-breadcrumb {
text-align: left;
margin-top: 0px;
margin-bottom: 40px;
color: #fff;
text-transform: uppercase;
background: #363940;
border-radius: 3px;
padding: 5px;
padding-left: 15px;
font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
letter-spacing: 1px;
font-weight: 800;
font-size: 1.125rem;
}
.woocommerce .woocommerce-breadcrumb a {
color: #ffffff;
}
h1.page-title {
text-align: center;
margin-top: 0;
color: #fff;
text-transform: uppercase;
background: #363940;
margin-bottom: 20px;
border-radius: 4px;
font-size: 1.125rem;
padding: 5px 0px;
}
The code snippet includes the code to enable WooCommerce plus the needed styles for buttons to make it fit the Acabado theme overall.
Download The Importable Code Snippet (Right Click Save As) – HERE
function WooCommerce_In_Acabado() {
add_theme_support( 'woocommerce' );
}
add_action( 'after_setup_theme', 'WooCommerce_In_Acabado' );
add_action( 'wp_head', function () { ?>
<script src="https://js.stripe.com/v3/"></script>
<style>
.woocommerce ul.products li.product .button {
margin-top: 1em;
width: max-content;
background-color: #515151;
}
a.button.wc-backward {
margin-top: 1em;
width: max-content;
background-color: #515151;
}
.woocommerce span.onsale {
width: 50px;
height: 50px;
background-color: #5be05d;
color: #fff;
}
a.button.wc-forward {
margin-top: 1em;
width: max-content;
background-color: #515151;
}
.woocommerce button.button {
width: max-content;
background-color: #515151;
}
.woocommerce button.button:hover {
width: max-content;
background-color: #05cc14;
}
.woocommerce #review_form #respond .form-submit input {
left: auto;
width: max-content;
background-color: #515151;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button{
float: none;
background-color: #363940 !important;
width: max-content;
}
@media (min-width: 960px) {
.woocommerce-page .widget-area {
float: left;
width: calc(25% - -6px);
padding-left: 0px;
border-left: 0px solid #f0f0f0;
}
.woocommerce-page .site-main {
width: calc(75% - 15px);
float: right;
padding-left: 15px;
}
}
@media (min-width: 576px) and (max-width: 959px){
.woocommerce-page .widget-area {
width: calc(100% - -6px);
padding-left: 0px;
display: inline-block;
border-left: 0px solid #f0f0f0;
}
.woocommerce-page .site-main {
width: calc(100% - 0px);
float: left;
padding-left: 0px;
}
}
.site-content .widget-area button {
display: -webkit-inline-box;
margin: 0 auto;
}
.widget-title {
border-radius: 3px;
padding: 5px;
}
.woocommerce .cart .button, .woocommerce .cart input.button {
float: none;
background-color: #363940 !important;
width: max-content;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
background-color: #84878c;
text-decoration: none;
background-image: none;
}
.woocommerce .woocommerce-breadcrumb {
text-align: left;
margin-top: 0px;
margin-bottom: 40px;
color: #fff;
text-transform: uppercase;
background: #363940;
border-radius: 3px;
padding: 5px;
padding-left: 15px;
font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
letter-spacing: 1px;
font-weight: 800;
font-size: 1.125rem;
}
.woocommerce .woocommerce-breadcrumb a {
color: #ffffff;
}
h1.page-title {
text-align: center;
margin-top: 0;
color: #fff;
text-transform: uppercase;
background: #363940;
margin-bottom: 20px;
border-radius: 4px;
font-size: 1.125rem;
padding: 5px 0px;
}
</style>
<?php } );
After you have enabled the above then you can go download the plugin from the repository and install the plugin, go through the setup and start to build out your shop.
WooCommerce creates all the pages you need for your customers to add items and make purchases. Currently, I haven’t found a good way to inject the shopping cart and that will come with more time, for now adding them to the menu will help people reach them as needed. (Also add my account and cart pages to the footer menu for safety sake)
Pages WooCommerce Creates:
If you would like to add a shopping cart with prices to your menu I would suggest adding the following plugin:
For the links like the about button to function they pull content, sometimes hosting will detect this and block the functionality and this is meant to help ID.
This is a tweak specifically to allow you the ability to make your category and tag pages look much more structured and professional, hopefully you like!
Jquery within Acabado is disabled by default to maximize page speed, you can enable it with specific plugins that keep changing but include Elementor, etc.
The rating stars in Acabado have no ability to change within the controls. We cover how to use the Custom CSS option to modify and set the color manually.
When you want to build landing pages people talk about how you need page builders, the thing is though that Gutenberg by itself may be more than good.