How to Configure WooCommerce for Layers
WooCommerce defines a set of templates for displaying your products, including how the image, price, additional info and so on are arranged. Layers simply provides simple styling to help these layouts conform to the Layers theme and framework for a more unified look.
How you configure WooCommerce, and which WooCommerce extensions you use, can affect how your catalog and single products look in Layers, requiring specific settings and in some cases, additional custom styling to fit the overall design of your site. Below are some basic settings we recommend for WooCommerce to work best with your Layers setup.
These settings in the customizer allow you to choose whether to show or hide the Shop Sidebar on your catalog and product pages.
- Go to →
- Browse to your shop or product page in the preview panel.
- Click on WooCommerce to expand the panel
- Choose the Left, Right, both or no checkboxes to set the layout of the catalog and single product views
- If you enabled a sidebar: Click the Back arrow in the customizer nav
- Click Edit Layout and expand the Shop Sidebar to add WooCommerce or standard sidebar widgets. Do not put Layers Builder widgets in this sidebar.
- Click Save & PUblish when done
Depending on the sidebar layout, you will notice the size of your images in the product column changes. The maximum width and the crop of these images is determined by your WooCommerce Product Image settings:
Configure Product Images
- Return to the WordPress admin and click →
- Click the Products tab, then click the Display link
- Scroll to the Products section at the bottom
- Catalog Images: Refers to the size of images in your shop, product category archives and WooCommerce shortcodes.
- Single Product Image: Refers to the size of the product image on the Product post
- Product Thumbnails: Refers to the size of the product image in WooCommerce widgets and anywhere else the product thumb is specifically used.
Because Layers is a responsive theme that adapts to the size of the viewer’s browser window, the space for these images varies and is a specific percentage of the total width of the content area. The below values are based on the maximum width the image will display, depending on your sidebar layout choice. Enter the values corresponding to your chosen layout into the Width fields of your Product Image settings.
One Sidebar (Only Left or Right Selected)
- Catalog Images Width = 238
- Catalog Images Width = 157
- Catalog Images Width = 320
One Sidebar (Only Left or Right Selected)
- Single Product Image Width = 365
- Single Product Image Width = 240
No Sidebar on Single Product
- Single Product Image Width = 490
This setting can be set to 100 for any layout choice since it is not affected by the sidebars.
The height is up to you depending on the kind of product images you are using, as well as the crop.
Hard crop will crop the bottom off your image at the height you set. Unchecking hard crop will scale the image to the width entered above, regardless of the height.
Optimizing your original images
We recommend using a uniform image size for all of your original product images and leaving the hard crop unchecked in these settings, especially for clothing shops. The subject should be centered and have some space around the edges of the photo to ensure it is not cut off by the crop or resizing.
Your originals must always be at least as wide as your single product image width setting.
Regenerate Your Images
If you had content in WooCommerce or WordPress previous to activating your theme, you must run the Regenerate Thumbnails plugin to re-create your theme images properly. See How to Regenerate Images to Fit Theme Templates
There are a ton of extensions out there that can enhance WooCommerce, from little things like cart labels to bigger things like product sliders. We rolled the best of the most popular WooCommerce Customization Extensions into one Layers extension called StoreKit, which offers catalog and product layout customization, additional widgets, and a nifty menu cart. It is truly a must-have if you are serious about running a shop with WooCommerce+Layers, bringing the total cost of a site worth more than 1000$ to just $20!