Series 7: Design Chapter 7 of 8

Navigation: menus and hover effect

Editing content
Applies to: every Sulu website As of Sulu 3.0

In short

A page goes into a menu through Show page in on the tab Settings. On the example website you choose the hover effect of the menu items in the configuration snippet, on the tab Header & navigation.

Each page decides for itself which menus it appears in. Every Sulu can do that. How the menu items look and react is set by the template of the website. That is covered in the second part of the chapter.

Helpful first: 2.7 Creating a new page and adding it to the menu

Step 1 of 4 Assign a page to a menu

Open the page and switch to the tab Settings. At Show page in you choose the menus. Which ones exist is set by your website. On the example website they are Main Navigation, Footer Navigation, Footer Bottom Navigation and Useful Links. You can check several.

The menu shows the title of the page. You change the order in the page tree, as described in the chapter Pages: how your website is built. Finally, click Save and publish.

On the example website: hover effect and mobile menu

How the menu items look and react is set by the template. The example website sets this in the configuration snippet. The following steps only apply to websites with this template.

Step 2 of 4 Choose the hover effect

In the main menu, click Snippets, below it Configuration: Webspace, and open Workshop configuration. Switch to the tab Header & navigation. In the area Navigation, choose one of seven entries at Hover effect:

  • Marker line (as before)
  • Background slides in
  • Line grows from the middle
  • Line runs from left to right
  • Line glides to the link
  • Background and line glide to the link
  • Text takes the color from left to right

Then save and publish the configuration.

Step 3 of 4 How the effect works

When the mouse moves over a menu item, it stands out. In the image the mouse is on News: the text turns green and a line appears on the right. That is the effect Marker line.

Step 4 of 4 The menu on the phone

On the phone, a menu icon appears instead of the menu bar. A tap on it opens the menu from the right, and the page behind it is dimmed. The icon turns into a cross.

The fields Flag and search on mobile and Active entry on mobile on the tab Header & navigation set up the mobile menu.

Hover only on a computer

Only visitors on a computer see the hover effect. A phone has no hovering, so the menu does not show the effect there.

The four menus

The example website has four menus. Which menus a website has is set in its configuration. Your agency sets up any further menu.

More on this