오프캔버스

The GutenKit Offcanvas block allows you to add a collapsible sidebar or navigation menu. It is a user-friendly and space-saving way to organize and present menu items, quick links, and mini-carts. 

You can place this block anywhere on your website, including the commonly used header section. It can be triggered or activated with a button or icon.

Let’s learn how the GutenKit Offcanvas block works. And, this document also applies to anyone who wants to add hamburgers to their website.

How to Create Hamburger Menu on Gutenberg Website with GutenKit Offcanvas Block? #

Let’s see how to use the GutenKit Offcanvas block. As you know this block can be inserted anywhere in your Gutenberg editor. 

So, when you need to set up the hamburger menu on your Gutenberg website, you need to insert the GutenKit Offcanvas block to the header area by navigating to 모양 > 편집기. Then, open the 항해 option, click the three-dot icon, and hit 편집하다 to add the GutenKit Offcanvas block.

Now, we’ll focus on the block settings. Let’s move to the first step. You have to make sure that the GutenKit block editor plugin is installed on your WordPress website. And, this block is a freemium option. To enjoy all the features of this block, you need to activate the pro version on your site. 

Step1: Add GutenKit Offcanvas Menu #

To insert the hamburger menu in your block editor: access your WordPress dashboard and go to an existing page or take a new one. Within the block editor: 

  • “를 찾으세요.+” 아이콘은 에디터 화면 오른쪽이나 상단에 있습니다. 클릭하세요.
  • 블록 메뉴가 나타나면 '를 검색하세요.GutenKit Offcanvas”.block.
  • 보이면 클릭하거나 블록 에디터 화면에 드래그 앤 드롭하세요.

Step 2: Configure Offcanvas Block #

Now, you have added the offcanvas block on your editor dashboard. This block loads with an icon, clicking it will reveal a panel on the right side of your screen. 

You can use this panel as a separate interface and use it as an editor interface. You have the freedom to add any type of block within this popup screen. 

Now, move to the block settings sidebar and select the 콘텐츠 tab. Open the 오프캔버스 setting. Here, you will see the same settings for 햄버거 그리고 Closed.

Hamburger: 

  • 메뉴 유형: You can show the hamburger indicator with an icon or text. Even you can show both the icon and text. Plus, you can choose the Animated Icon option. Also, note that choosing the Icon & Text option will let you place the icon position before or after the text. 

Closed: Guide your visitors to close the canvas by keeping an icon or text or showing both. And, as in the previous option, you can select the icon position. 

스타일 선택: Select an opening style for the offcanvas revealing. Like: Slide, Reveal, Push, etc.

이제, 콘텐츠 tab, go to the 환경 드롭다운. 

  • Show Overlay: Here, activate the toggle icon and change the color of the overlay. 
  • Disable Scroll: You can disable body scrolling, it only works for frontend.
  • Sidebar Position: Select the sidebar revealing direction from up, down, left, & right.
  • 오프셋: 
  • Sidebar Transition: Determine the speed of sidebar opening.
  • HTML 태그: Define the HTML tag from the dropdown.

Step 3: Style Offcanvas Content #

At this part of this GutenKit Offcanvas block doc, we will show you the customization part. Navigate to the 스타일 tab. First, open the 오프캔버스 option and define the alignment of the hamburger menu potion. (Left, right or center)

Then, you can make the below adjustment for both hamburger and closed options. 

  • Choose icon size and the gap with text.
  • Customize the hamburger typography.
  • Pick icon/text and background color for both normal and hover state.
  • Add and style the border by defining its roundness, thickness, and shadow effects.
GutenKit Offcanvas 블록으로 오프캔버스 스타일링

Now, open the 오프캔버스 패널 option in the 스타일 tab. Here, you can customize the panel content. 

  • 콘텐츠 정렬: Define the content alignment position between the Start, Center, & End.
  • 키: Adjust the height of the panel screen.
  • 배경: Choose a background type from solid color, gradient, & image.

And, you can also adjust the padding and box shadow of this panel. 

Now, you know all the customizing settings to style the hamburger menu of your website. Once you are done with everything check the preview before making it live. Below, you can see our preview.

This is how you can easily create hamburger menu to your Gutenberg website using GutenKit Offcanvas block.

당신의 감정은 무엇입니까?
Updated on 2월 19, 2025