{"id":2074,"date":"2026-10-14T04:38:21","date_gmt":"2026-10-14T04:38:21","guid":{"rendered":"https:\/\/shapekode.com\/product\/shapeblock\/?post_type=docs&#038;p=2074"},"modified":"2026-10-17T10:50:51","modified_gmt":"2026-10-17T10:50:51","password":"","slug":"offcanvas","status":"publish","type":"docs","link":"https:\/\/shapekode.com\/product\/shapeblock\/docs\/offcanvas\/","title":{"rendered":"Offcanvas"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The Offcanvas Block lets you display a toggle button that opens a hidden panel containing a selected ShapeBlock Template. Choose between a classic side panel and a modern fullscreen-style panel, customize the opening position and width, and style the menu button, closing icon, and panel appearance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Add an Offcanvas Block<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Add the Offcanvas Block<\/h3>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Open the page or post where you want to add the Offcanvas Block.<\/li>\n\n\n\n<li>Click the <strong>+ (Add Block)<\/strong> button in the Gutenberg editor.<\/li>\n\n\n\n<li>Search for <strong>Offcanvas<\/strong>.<\/li>\n\n\n\n<li>Select the <strong>Offcanvas Block<\/strong> to insert it into your page.<\/li>\n\n\n\n<li>Select or create a ShapeBlock Template to display inside the offcanvas panel.<\/li>\n\n\n\n<li>Use the block settings in the sidebar to configure its layout, position, width, and appearance.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"319\" src=\"https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-79.png\" alt=\"\" class=\"wp-image-2407\" srcset=\"https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-79.png 973w, https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-79-300x98.png 300w, https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-79-766x251.png 766w\" sizes=\"auto, (max-width: 973px) 100vw, 973px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Configure the Offcanvas Block<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Select the Offcanvas Block and open the block settings in the sidebar. The available tabs are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Settings:<\/strong> Choose the offcanvas layout, configure the opening position, select a template, and customize the opener and closing icons.<\/li>\n\n\n\n<li><strong>Layout:<\/strong> Set the canvas width for desktop, tablet, and mobile devices.<\/li>\n\n\n\n<li><strong>Style:<\/strong> Customize the opener icon, closing icon, panel background, padding, and blur effect.<\/li>\n\n\n\n<li><strong>Advanced:<\/strong> Configure spacing and background settings for the entire Offcanvas Block.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Settings Tab<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Offcanvas Settings<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Offcanvas Layout:<\/strong> Choose the layout of the offcanvas panel.\n<ul class=\"wp-block-list\">\n<li><strong>Classic:<\/strong> Displays a side panel that opens from the left or right.<\/li>\n\n\n\n<li><strong>Modern:<\/strong> Displays a modern panel with fullscreen-style behavior and configurable opening animation.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Canvas Menu Text:<\/strong> Enter the text displayed on the opener button. Leave it empty if you want to use the icon without text.<\/li>\n\n\n\n<li><strong>Menu Icon:<\/strong> Choose the opener icon. This option is available when the <strong>Classic<\/strong> layout is selected.<\/li>\n\n\n\n<li><strong>Open Position:<\/strong> Choose how the panel opens.\n<ul class=\"wp-block-list\">\n<li>For <strong>Classic:<\/strong> Select <strong>Left<\/strong> or <strong>Right<\/strong>.<\/li>\n\n\n\n<li>For <strong>Modern:<\/strong> Select <strong>Fade in place<\/strong>, <strong>From left<\/strong>, <strong>From right<\/strong>, <strong>From top<\/strong>, or <strong>From bottom<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Select Template:<\/strong> Select a published ShapeBlock Template to display inside the offcanvas panel.<\/li>\n\n\n\n<li><strong>Edit Template:<\/strong> Open the selected template for editing. This option appears when a template is selected.<\/li>\n\n\n\n<li><strong>Create New Template:<\/strong> Open the template editor to create a new ShapeBlock Template. If no templates are available, create one before selecting it.<\/li>\n\n\n\n<li><strong>Close Icon:<\/strong> Choose the icon used to close the panel. This option is available when the <strong>Classic<\/strong> layout is selected.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1495\" height=\"674\" src=\"https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-80.png\" alt=\"\" class=\"wp-image-2408\" srcset=\"https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-80.png 1495w, https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-80-300x135.png 300w, https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-80-767x346.png 767w, https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-80-1024x462.png 1024w\" sizes=\"auto, (max-width: 1495px) 100vw, 1495px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Layout Tab<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Canvas<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Canvas Width (px):<\/strong> Set the width of the classic offcanvas panel in pixels. The width can be configured separately for desktop, tablet, and mobile devices.<\/li>\n\n\n\n<li><strong>Canvas Width:<\/strong> Set the width of the modern offcanvas panel for desktop, tablet, and mobile devices.\n<ul class=\"wp-block-list\">\n<li>Leave the value empty to use the full screen width (<strong>100%<\/strong>).<\/li>\n\n\n\n<li>Enter a number to set the width in pixels.<\/li>\n\n\n\n<li>You can also use CSS width values such as <code>80%<\/code> or <code>60vw<\/code>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Style Tab<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Opener Icon<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Text Color:<\/strong> Set the color of the opener button text. This option appears when Canvas Menu Text is not empty.<\/li>\n\n\n\n<li><strong>Typography:<\/strong> Customize the opener button text typography. The settings can be configured separately for desktop, tablet, and mobile devices. This option appears when Canvas Menu Text is not empty.<\/li>\n\n\n\n<li><strong>Hamburger Color:<\/strong> Set the color of the opener icon. The available icon styling depends on the selected layout.<\/li>\n\n\n\n<li><strong>Hamburger Size (px):<\/strong> Set the size of the opener icon in pixels.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. Closing Icon<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Icon Color:<\/strong> Set the color of the closing icon.<\/li>\n\n\n\n<li><strong>Icon Size (px):<\/strong> Set the closing icon size in pixels. This option is available when the <strong>Classic<\/strong> layout is selected.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. Offcanvas Item<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Background:<\/strong> Set the background color or gradient of the offcanvas panel.<\/li>\n\n\n\n<li><strong>Padding:<\/strong> Adjust the inner spacing of the panel. Padding can be configured separately for desktop, tablet, and mobile devices.<\/li>\n\n\n\n<li><strong>Enable Blur:<\/strong> Enable the blur effect behind the offcanvas panel.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"352\" src=\"https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-81-1024x352.png\" alt=\"\" class=\"wp-image-2410\" srcset=\"https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-81-1024x352.png 1024w, https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-81-300x103.png 300w, https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-81-765x263.png 765w, https:\/\/shapekode.com\/product\/shapeblock\/wp-content\/uploads\/2026\/10\/image-81.png 1496w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Advanced Tab<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Advanced tab controls spacing and background settings for the entire Offcanvas Block, not the content inside the selected template.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Spacing<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Padding:<\/strong> Set the outer padding around the Offcanvas Block. Values can be configured separately for desktop, tablet, and mobile devices.<\/li>\n\n\n\n<li><strong>Margin:<\/strong> Set the outer margin around the Offcanvas Block. Values can be configured separately for desktop, tablet, and mobile devices.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. Background<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Background Color:<\/strong> Set the background color of the entire Offcanvas Block.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Offcanvas Block lets you display a toggle button that opens a hidden panel containing a selected ShapeBlock Template. Choose between a classic side panel and a modern fullscreen-style panel, customize the opening position and width, and style the menu button, closing icon, and panel appearance. How to Add an Offcanvas Block Step 1: Add [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[18],"doc_tag":[],"class_list":["post-2074","docs","type-docs","status-publish","hentry","doc_category-header-footer-block"],"year_month":"2026-10","word_count":675,"total_views":"3","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Sojib","author_nicename":"shapekode-admin","author_url":"https:\/\/shapekode.com\/product\/shapeblock\/author\/shapekode-admin\/"},"doc_category_info":[{"term_name":"Header &amp; Footer Block","term_url":"https:\/\/shapekode.com\/product\/shapeblock\/docs-category\/header-footer-block\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/shapekode.com\/product\/shapeblock\/wp-json\/wp\/v2\/docs\/2074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shapekode.com\/product\/shapeblock\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/shapekode.com\/product\/shapeblock\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/shapekode.com\/product\/shapeblock\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shapekode.com\/product\/shapeblock\/wp-json\/wp\/v2\/comments?post=2074"}],"version-history":[{"count":1,"href":"https:\/\/shapekode.com\/product\/shapeblock\/wp-json\/wp\/v2\/docs\/2074\/revisions"}],"predecessor-version":[{"id":2411,"href":"https:\/\/shapekode.com\/product\/shapeblock\/wp-json\/wp\/v2\/docs\/2074\/revisions\/2411"}],"wp:attachment":[{"href":"https:\/\/shapekode.com\/product\/shapeblock\/wp-json\/wp\/v2\/media?parent=2074"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/shapekode.com\/product\/shapeblock\/wp-json\/wp\/v2\/doc_category?post=2074"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/shapekode.com\/product\/shapeblock\/wp-json\/wp\/v2\/doc_tag?post=2074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}