Linux 软件免费装
Banner图

OffCanvas / Drawer – add sleek slide-in panels to any page

开发者 abuhayat
charlescormier
bplugins
freemius
asadsuzan
更新时间 2026年11月12日 13:47
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

popup slide menu block drawer offcanvas

下载

2.0.2 1.0.0 1.0.1 2.0.3 2.0.1 2.0.4 2.0.0 2.0.5 2.0.6 2.0.7 2.1.7 2.2.0 2.2.1

详情介绍:

OffCanvas | Pricing | Support | Demo 🎬 Watch Video Walkthrough: https://youtu.be/dfWy_4XhEfs Create high-converting popups, slide-in panels, and responsive navigation drawers inside the WordPress block editor (Gutenberg) with ease. OffCanvas / Drawer is a lightweight, performance-optimized WordPress popup plugin and Gutenberg popup builder. It allows you to design custom OffCanvas menus, drawer menus, side panels, and interactive popups that slide in or fade in from any viewport direction: left, right, top, or bottom. Whether you need a sleek mobile menu, a WooCommerce cart drawer, an exit intent popup to recover abandoned carts, custom slide-out contact forms, site announcements, or an interactive help desk—this plugin does it all without requiring you to write a single line of code. Built Natively for Gutenberg (Block Editor) Designed specifically for the block editor, it supports full InnerBlocks integration. You can drop any Gutenberg block (paragraphs, images, headings, contact forms, navigation blocks, or custom widgets) directly inside the slide-in panel. It also features a built-in shortcode generator, allowing you to save layouts as templates and embed them anywhere on your website using a simple shortcode. Smart Behavior, Triggers & Targeting Go beyond basic popups. Trigger drawers based on visitor actions like scroll depth, time delay, user inactivity, element visibility, or exit intent. With advanced targeting rules, you can display or hide popups on specific pages, target specific user roles, and schedule marketing campaigns with timezone-aware start and end dates. Dedicated Analytics Dashboard Track how your floating popups and slide menus perform. The built-in Analytics dashboard measures impressions, conversions, and conversion rates, giving you the insights you need to optimize your layout and strategy. Silky-Smooth Animations & Device Optimization Provide a premium user experience with responsive positioning (e.g., a slide-in side panel on desktop, and a mobile bottom sheet on phones), touch/swipe gesture controls, and independent opening and closing transition effects. Add a modern backdrop blur filter to keep your content in focus. The plugin is fully responsive, SEO-friendly, exceptionally lightweight, and built to integrate seamlessly with any WordPress theme. .

安装:

From the WordPress Dashboard
  1. Navigate to Plugins → Add New.
  2. Search for OffCanvas Block.
  3. Click Install Now and then Activate.
Manual Installation
  1. Download the plugin ZIP file from the WordPress Plugin Directory.
  2. Log in to your WordPress admin dashboard and go to Plugins → Add New → Upload Plugin.
  3. Choose the ZIP file, upload, and click Activate.
Adding the Block
  1. Open the Gutenberg editor on any page, post, or template.
  2. Click the + icon (Add Block) and search for drawer or OffCanvas.
  3. Pick the blank OffCanvas block or a ready-made kit (Mobile Menu Drawer, Contact Drawer, Bottom Sheet).
  4. Configure settings in the inspector sidebar and populate the content area with Gutenberg blocks.

屏幕截图:

  • One-click drawer kits: search "drawer" in the block inserter and add a ready Mobile Menu, Contact or Bottom Sheet drawer.
  • Contact Drawer kit: call, email and WhatsApp cards, your contact form and quick answers.
  • Any link opens a drawer: a plain text link to #ocb-contact opens the Contact drawer, and a backdrop click closes it.
  • Open from Any Link settings: name the drawer, then copy its link for menus, buttons and text.
  • Mobile-ready: scroll lock on iPhone, close on a backdrop tap or a link click, and keyboard focus kept inside the drawer.
  • Pro: Smart Auto Trigger opens a drawer after a delay, on scroll depth, when a section comes into view, on exit intent or after inactivity.

升级注意事项:

2.2.1 A fresh, modern design for the Mobile Menu and Contact drawer kits, with smooth animations, contact cards and a help card — still free and fully editable. The plugin is now fully translatable. 2.2.0 Open any drawer from a menu or button link with #ocb-name, start from one-click Mobile Menu, Contact, and Bottom Sheet kits, and get a scroll lock and keyboard focus that now work everywhere — all free. 2.0.6 Track conversions with our new Analytics Dashboard, customize separate exit animation styles with Independent Close Animations, and target your campaigns precisely with Page, User Role, and Timezone-based Targeting Rules. 2.0.1 Improved trigger button experience with ripple effect, adds custom close icon and position options, and extends popup header background and title controls. 2.0.0
  • Major Upgrade: New interaction system, smart triggers, design controls, and improved UI/UX.
1.0.0
  • Initial Release.

常见问题:

Does this block work with Full Site Editing (FSE)?

Yes! OffCanvas Block is fully compatible with block-based themes and FSE templates, headers, footers, and page layouts.

Can I use the OffCanvas drawer as a WooCommerce mini-cart?

Yes. You can insert the WooCommerce Cart block (or any cart block/shortcode) inside the OffCanvas content area and use the CPT shortcode to trigger it from your main menu cart button.

How do I open the OffCanvas panel from a navigation menu link?

Give the drawer a link name in the Open from Any Link panel (for example menu), then add a Custom Link to your Navigation menu with the URL #ocb-menu. Any button or text link to #ocb-menu works the same way, and you can turn off Show Built-in Button if the menu link should be the only way in. This is free. In the Pro version you can also bind the drawer to any CSS class or ID with the Custom Trigger Selector setting.

Can I stop the page from scrolling behind the drawer?

Yes. Turn off Allow Page Scrolling under Display & Interaction. The page behind stays still while the drawer is open — including on iPhone — and the drawer's own content still scrolls.

Can I open or close a drawer with JavaScript?

Yes. A drawer with a link name can be controlled with window.ocb.open('menu'), window.ocb.close('menu'), window.ocb.toggle('menu'), and window.ocb.isOpen('menu'). Drawers also fire ocb:open and ocb:close events with the drawer's name in event.detail.slug, for example to send them to your analytics tool.

Can I use OffCanvas inside a Query Loop, with different content for each post?

Yes. Place the OffCanvas block inside the Query Loop's Post Template, next to the "More details" button of your card, and give every card's button the same class (e.g., more-details) in the Custom Trigger Selector setting. Each card opens its own panel, and any dynamic block you put inside the panel — Post Title, Excerpt, Featured Image, Post Content, or a custom field — shows the content of that card's post. This is the recommended way to build resource pages, directories, and product listings with per-item detail panels.

Can I limit how often the popup triggers appear to a single user?

Yes. The Pro version includes a Smart Trigger Frequency control, allowing you to limit trigger appearances to "Once per session" or "Once per day" utilizing local storage and session storage.

What happens if I have multiple OffCanvas blocks on the same page?

The plugin handles multiple instances perfectly. Each block generates its own unique wrapper class and isolated trigger events. In version 2.0.4+, smart triggers also use block-specific storage keys to prevent collisions.

Can I schedule popups for specific campaigns?

Yes! In the Pro version, you can set a start and end date/time for your campaigns with timezone-aware scheduling, making it perfect for limited-time promotions, holiday sales, and announcements.

How does the Analytics dashboard work?

In the Pro version, the plugin includes a lightweight Analytics system that tracks impressions, conversions, and conversion rates. A conversion is recorded whenever the user triggers a conversion action inside the panel. This data is displayed in a clean dashboard within your WordPress admin panel.

更新日志:

2.2.1 (November 11, 2026) 2.2.0 (October 15, 2026) 2.1.7 (September 22, 2026) 2.0.7 (August 23, 2026) 2.0.6 (August 02, 2026) 2.0.5 (23 May, 2026) 2.0.4 (07 Apr, 2026) 2.0.3 (22 Feb, 2026) 2.0.2 (17 Feb, 2026) 2.0.1 (02 Jan, 2026) 2.0.0 – 26 Nov 2025 Major Upgrade: New interaction system, smart triggers, design controls, and improved UI/UX. 1.0.1 – 30 Sep 2024 1.0.0