Off-Canvas widget documentation
Off-Canvas adds a trigger button to the page and a panel that slides in when it is clicked.
Overview
The Xtra Off-Canvas widget is a free Elementor off-canvas panel. A trigger button sits in your layout and opens a panel that slides in from the left, right, top or bottom of the screen, ready for a mobile menu, a side cart, a search drawer or a bottom sheet.
The panel has an optional title, a close button and a rich-text content area for links, lists, headings, images and buttons. While it is open the page behind can be locked from scrolling, Escape closes the panel, focus moves into it and returns to the trigger button when it closes.
The trigger button can show text, an icon or both, with the icon before or after the label, or an icon only. Button, panel, title and close button are all styled from the Style tab, with separate width and height settings for each device.
You will find the widget in the Elementor panel under the Xtra widgets, or search for “Off-Canvas”. It is part of the free Xtra Addons for Elementor plugin — see the Off-Canvas widget page for live demos.
Quick start
- Drag the Off-Canvas widget from the Xtra widgets into the place where the trigger button should appear, for example your header.
- Under Content → Trigger Button, write the Button Text, pick a Button Icon and set the Icon Position (Before Text, After Text or Icon Only) and Alignment.
- Under Content → Panel, choose Slide From: Left, Right, Top or Bottom.
- Set the Panel Width for left and right panels, or the Panel Height for top and bottom panels.
- Add a Panel Title and write the Panel Content in the editor.
- Switch Lock Body Scroll and Show Close Button on or off as you need.
- Open Style → Button for typography, colors, hover colors, padding and Border Radius, and Style → Button: Border & Shadow for the outline and shadow.
- Use Style → Panel for the background, padding, border and shadow, and Style → Panel Header for the title typography, color and the close button size and colors.
Options reference
All 35 options of the Off-Canvas widget, as they appear in the Elementor panel. Many options are responsive and can be set separately for desktop, tablet and mobile.
Content tab 13 options
Trigger Button
| Option | Type | Values and notes |
|---|---|---|
| Button Text | Text | |
| Button Icon | Icon | |
| Icon Position | Select | Before TextAfter TextIcon Only |
| Alignmentresponsive | Choice | LeftCenterRight |
Panel
| Option | Type | Values and notes |
|---|---|---|
| Slide From | Select | LeftRightTopBottom |
| Panel Widthresponsive | Slider | |
| Panel Heightresponsive | Slider | |
| Show Overlay | On / off | |
| Close on Overlay Click | On / off | |
| Lock Body Scroll | On / off | |
| Show Close Button | On / off | |
| Panel Title | Text | |
| Panel Content | Rich text |
Style tab 22 options
Button
| Option | Type | Values and notes |
|---|---|---|
| Typographyresponsive | Typography | Font family, size, weight, transform, style, decoration, line height, letter spacing and word spacing. |
| Text Color | Color | |
| Background | Color | |
| Paddingresponsive | Dimensions | |
| Border Radiusresponsive | Dimensions |
Panel
| Option | Type | Values and notes |
|---|---|---|
| Backgroundresponsive | Background | Classic color or image, gradient, video and slideshow backgrounds with position, size and effects. |
| Paddingresponsive | Dimensions | |
| Border Type | Select | DefaultNoneSolidDoubleDottedDashedGroove |
| Border Widthresponsive | Dimensions | |
| Border Color | Color | |
| Box Shadow | Box shadow |
Panel Header
| Option | Type | Values and notes |
|---|---|---|
| Typographyresponsive | Typography | Font family, size, weight, transform, style, decoration, line height, letter spacing and word spacing. |
| Title Color | Color | |
| Close Button Color | Color | |
| Close Button Background | Color | |
| Close Button Sizeresponsive | Slider |
Overlay
| Option | Type | Values and notes |
|---|---|---|
| Overlay Color | Color |
Button: Border & Shadow
| Option | Type | Values and notes |
|---|---|---|
| Border Type | Select | DefaultNoneSolidDoubleDottedDashedGroove |
| Border Widthresponsive | Dimensions | |
| Border Color | Color | |
| Box Shadow | Box shadow | |
| Position | Select | OutlineInset |
Tips
- For an icon-only button, still type a Button Text; it becomes the accessible label for screen readers.
- On mobile, set the panel width to 100% (or a large percentage) so the panel feels like a full-screen menu.
- Give the panel a thin border instead of a heavy shadow so the closed panel never leaves a glow at the screen edge.
- The panel content is rich text; use link styles in the editor to turn a link into a button-like call to action.
Frequently asked questions
Is the Xtra Off-Canvas widget free?
Yes. Off-Canvas is part of the free Xtra Addons for Elementor plugin and does not require Elementor Pro.
Which sides can the panel slide in from?
Left, right, top and bottom. Choose Slide From under Content → Panel.
Can I use it as a mobile menu?
Yes. Use an icon-only trigger button and put your menu links in the Panel Content. Set a large panel width on mobile if you want a full-screen menu.
How does the panel close?
With the close button or the Escape key. Focus returns to the trigger button afterwards.
Does it stop the page from scrolling behind the panel?
Yes. Lock Body Scroll is on by default and is released when the panel closes.
What can I put inside the panel?
Anything the rich-text editor supports: headings, paragraphs, links, lists and images. Form fields are not allowed in the content.
See the Off-Canvas widget in action
Live demos, features and use cases are on the widget page.