Off-canvas sidebar in a custom shop layout

An off-canvas sidebar keeps filters or other sidebar content hidden until the customer opens it with a button. In a custom Products archive layout, the setup consists of an off-canvas sidebar area, a content area, and a button that opens the sidebar.

Product filter sidebar with price, color, size, and brand options

The setup method depends on the editor used for the Products archive layout.

WPBakery

Step 1. Add a row with two columns. Place the Sidebar element or filter widgets in one column and the Archive products element in the other.

WPBakery Page Builder layout editor showing page title, sidebar, and WooCommerce product archive elements

Step 2. Edit both columns and configure Column role for off-canvas layout. Set the sidebar column to Off-canvas column and the products column to Content column. Enable the same desktop, tablet, and mobile devices for both roles.

Settings dialog for a column, with the off-canvas layout role field highlighted

Step 3. Add the Off-canvas button element inside the Content column.

Off canvas column button

Elementor

Step 1. Add a parent container with two horizontally arranged inner containers. Place the Sidebar element or filters in one container and Archive products in the other.

Elementor editor showing a WooCommerce products archive layout with sidebar and product grid

Step 2. Configure Column role for off-canvas layout for both inner containers. Select Off-canvas column for the sidebar and Content column for the products. Use matching device selections for both containers.

Screenshot of a page builder showing off-canvas layout settings and a product sidebar preview

Step 3. Add the Off-canvas button widget inside the Content container.

Edit off canvas column button

Gutenberg

Step 1. Add the Off-canvas layout block. It provides the required sidebar and content structure.

WordPress block editor showing an off-canvas layout for a products archive page

Step 2. Select the inner Sidebar block and configure the devices on which it should behave as an off-canvas area.

Off canvas sidebar settings on product archive layout

Step 3. Add the Off-canvas button block to the content area and configure it for the corresponding devices.

Show off canvas button

Check the responsive setup

The off-canvas sidebar and its opening button must be enabled for compatible screen sizes. Preview the archive on desktop, tablet, and mobile to confirm that the sidebar is visible or hidden as intended and that the button opens it.

Related documentation

Don’t miss WoodMart updates

Receive feature updates, tutorials, and WoodMart news via email.