The header, the More menu, and the mobile menu - Enardo

Header and footer

Enardo's header is one row: your logo on the left, the menu in the center, and search and the light and dark toggle on the right. It sits at the top of the page and scrolls away with it. On phones the menu moves into a full-screen mobile menu.

The header is the Header template part. How do I edit the header or footer in a block theme? shows where to open it.

Select the Site Logo block in the header and upload your image. The logo links to the home page and takes half the header's height. Until you set one, the header shows the site title. With Enardo Pro it shows the Enardo logo instead, in a light or dark tone to match the scheme.

#Build the menu

Select the Navigation block in the center of the header and add pages, categories or custom links. Menus in a block theme live in this block; AppearanceMenus is not available.

On wide screens the bar shows as many top items as fit around the center. The rest fold into a last item marked with three dots, which opens them as a list. Submenus open on hover, on keyboard focus, or with a click on their arrow, and they open toward the side of the window with room. Esc closes an open list.

The header in the dark scheme with the three-dot More menu open, listing Technology, Science, Design and Culture
Folded items open from the three dots.

#Keep an item in the More menu

Some items, such as a list of topics, read better tucked away. Give them a class and they always fold into the three-dot menu on screens 810 pixels wide and up, whether there is room or not.

Select the menu item

Open the header, select the Navigation block, then click the item you want to fold.

Add the class

In the block sidebar, open Advanced and type enardo-nav-more-item into Additional CSS class(es).

Save and check

Save the header and open the site on a wide screen. The item now shows inside the three-dot menu. On phones it stays a normal item in the mobile menu.

The Advanced panel of a menu item in the Site Editor, with enardo-nav-more-item in Additional CSS class(es) ringed
The class on a menu item.

#The mobile menu

Below 810 pixels wide, the header shows the logo on the left and the toggle, search and a menu button on the right. The menu button opens a full-screen menu with your logo, a close button, large menu items, the copyright line and social icons.

The full-screen mobile menu at phone width with the logo, a close button, eight large menu items, the copyright line and social icons
The mobile menu on a phone.

A submenu replaces the list when opened, with a Back button to return one level up.

The mobile menu is its own template part, Mobile menu. Edit it to change the social links or the copyright line.

#Search and the scheme toggle

The search button opens a search box over the page. With Enardo Pro, it becomes the Search modal, with suggestions and live results: see The Search modal block.

The light and dark toggle shows while Color scheme switcher is on at AppearanceCustomizeEnardo ThemeColor scheme. See Set up the light and dark schemes.

#Questions

Can the header stay fixed at the top while scrolling?

No. The header is part of the page and scrolls with it.

My menu item with the class still shows in the bar.

Check the window width: the class works from 810 pixels. Then check the spelling in Additional CSS class(es) and that the header was saved.

Last updated

Was this article helpful?

FIND THE ONE THAT FITS YOUR PROJECT

Import a demo, swap the content, adjust the layout. Modern WordPress under the hood, fast even when the site fills up.