Jason G. Designs

WordPress Themes, Design Tutorials, Linux Themes and more…

WooCommerce Styling for The M.X.

After adding WooCommerce compatibility to this website’s theme, I figured why stop at just this theme. The M.X. already had some styling just for WooCommerce blocks.

I decided to finish the styling for the default WooCommerce setup that is generated by shortcodes. I also added some other special features. Now, users can add a separate right or left sidebar for their store. In addition, users can add a shopping cart widget to the header that displays the number of items in the cart.

Some screenshots are in order.

Shop Page

Standard WooCommerce Shop page design
The M.X. standard WooCommerce design before
Customized WooCommerce Shop page styled by The M.X.
The M.X. shop page after

The Shop page products columns use the same design as their block counterparts, incorporating similar styles to that of this theme’s featured images.

I had to use Chromium’s Developer Tools to approximate the margins, as I created the “before” images after the transformation was complete.

Product Page

WooCommerce Product page before
WooCommerce Product page before in tablet width
WooCommerce Product page after
WooCommerce Product page after

Cart Page

Cart page
WooCommerce Cart page

The Cart, Checkout and My Account pages use a simplified header, which has a non-linked logo for branding, and a link back to the Shop page.

Sidebar

Custom sidebar for Shop and/or Product pages
Custom sidebar for only WC pages

When WooCommerce is activated, some new controls are added to the Customizer. In the Layout section, you have the option of enabling a separate sidebar from the blog. Options are for right and left sides, and to have the sidebar show up only on the Single Product page.

Cart Icon

Cart icon in the header
Cart icon in the header

Finally, the Customizer adds a Store Options section, where you can include a persistent cart icon that displays the number of items in shopper’s carts. For obvious reasons, this will not show on the Cart or Checkout pages.

In order to get these WooCommerce styles, you will need the latest version of The M.X., which as of this writing is 1.3.20.


Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.