Setting Up Navigation

Hattrick’s header has three menus, each a Navigation block:

  • the main menu beside the logo, shown from 1024 pixels wide,
  • the team bar under it, for the club’s pages (it scrolls sideways on phones),
  • the menu panel that opens from the round menu button, on every screen size. It’s the Menu Overlay template part.

The footer has its own menus. The menus are part of their template parts: go to Appearance → Editor → Patterns, open the Header, the Footer or the Menu Overlay (listed under Navigation Overlay), and select the Navigation block you want to change. The block settings list its links, which you can reorder there too.

Header template part in the Site Editor

Adding pages and links

  1. Select the Navigation block and click + where the new item should go.
  2. Search for a page, post or category, or paste an address.
  3. Drag items to reorder them, or add a Submenu for a dropdown.
  4. Click Save.

Mega menus

A submenu with the Mega Menu style opens as a panel across the header, its own submenus shown as columns with headings. Select the submenu item and pick Mega Menu under Styles in the block settings. The demo’s Club and Shop items are mega menus.

In the Shop mega menu, a submenu with the additional CSS class hattrick-menu-products shows its links to products as rows with the product’s picture, category, name, rating and price (see The Club Shop).

Links to your club’s pages

The demo menus link Team Stats and Roster Stats to the club team’s Full Statistics and Roster Stats pages. The club’s team is the team highlighted in your latest league table, or your only team (see Setting Up SportsPress).

Was this page helpful?