Navigation menu

    Every piece of content you create directly under the Start node on your Umbraco Uno website, will automatically be added to the default navigation menu. Do you have content items with sub-pages, these will be added as a dropdown in the menu.

    The default navigation menu on the sample website

    The navigation menu will be visible at the top of the page as part of the Header. On the Theme settings page there are a few different layout options. These are also available through the Theme Editor.

    In some cases, you might want to make changes to the automatically created navigation menu. This can be done by using the Custom navigation feature. Get a more detailed introduction to the configuration options for both the navigation menu, and the Header in general, on the Start node article.

    In this article you will get a guide on how you can costumize the default automatically generated navigation menu and add more elements, like buttons and icons.

    Custom navigation and Header

    The following guide will give you a walk-through on how you can create a custom navigation menu for your website. We will also be working a bit with sub headers.

    Once complete, the new header including the navigation menu will look similar to this:

    Custom navigation menu plus sub headers

    The first part of the navigation will revolve around choosing links and buttons for the navigation. This will be done from the Navigation group, which can be found on the Home node in the Content section of the Umbraco backoffice.

    The Navigation group on the home node

    1. To add items to the custom navigation, click Add Content
    2. Choose Navigation item
    3. Give the item a name - we'll go with Unicorn Hotel
    4. Click the Add option next to Link
    5. Choose where the item should link to - for this guide, we'll choose our Home node, Unicorn Hotel.
    6. Hit Submit to add the link

    That was the first item in our custom navigation. If you at this point where to Save and Preview the Home node, you'll see that the navigation menu currently only has a single link; Unicorn Hotel.

    1. Click on the name of the Unicorn Hotel item to collapse it
    2. Again, we'll select Add content to add the next item for our navigation
    3. This time we'll choose Big Navigation
    4. We'll give it a name - Accommodations
    5. For Link, we'll choose the Accommodations content node in the Content tree (to expand the Content tree in the Link dialog, click on the little arrow next to the Home node)
    6. Next up, we'll select Add content next to Navigation Grid

    This is a bit different, from adding a link to the navigation. Instead we will add a box that will appear when you hover over the Accommodation link.

    Big Navigation items and grids

    To add this, we're going to use a Grid, which uses all the standard Grid widgets.

    We'll be adding a total of 3 columns to the Accommodation navigation item.

    1. Select Add Content next to Columns
    2. Choose the Pod widget
    3. Set the Column width to 33%
    4. Choose a heading - Executive suites
    5. Add a bit of text - for this guide, I'll be adding a bit of Lorem Ipsum text
    6. Select Pick an icon... next to Icon, and choose the diamond icon
    7. Toggle the Media left option to ensure that the icon will be displayed left of the content
    8. Add a link to the Effective Executive Suite content node

    That was the first of the three columns. We're going to copy this first Pod widget in order to create the remaining two.

    1. Copy the Pod: Executive Suites widget by clicking the copy-icon on the right-side
    2. Click Add Content and choose the widget that you've copied

    Copy widgets feature

    Once you've copied the widget twice, make sure to update the heading, text, icon and link to match the remaining two content nodes under Accommodations, Family Wonderland and The Unicorn King.

    For the next item in our custom navigation, we're going to copy the Big Navigation item we created above; the Accommodations item.

    1. Copy the Accommodations navigation item
    2. Select Add content under the last navigation item and choose Accommodations from the clipboard
    3. Update the name of the new item to Facilities and link it to the Home node
    4. In the navigation grid for this item, we will only need two columns; one for The Restaurant and one for Unicorn Spa
    5. Make sure to update heading, text, icon and link to match the two content nodes, The Restaurant and Unicorn Spa.

    When you've setup everything you need in the Facilities navigation item, add a couple more item to the navigation menu.

    Final custom navigation

    Below the Custom navigation which we've been working with so far, there's an option to add buttons to the navigation. These will be added in the right-most side of the header. For this guide, we'll be adding a single button.

    1. Click Add content
    2. Choose a text for the button - Book
    3. Make sure the button links to the Contact/Book content node
    4. Under color, choose the Theme color (last one on the right)
    5. Choose the button size

    At this point, go ahead and hit Save in the bottom, and select the Preview feature.

    Preview of the custom navigation

    Sub Headers

    We've already created the custom navigation, and now we're going to extend the Header a bit. We will be doing this by adding a Sub Header with a few links to social media.

    A bit further down in the Navigation group, you'll find the option to add sub headers.

    Section to add sub headers

    1. Toggle to Enable Sub Headers
    2. Click Add content next to Sub Header Right as this is where we'll be adding our social media links
    3. Leave the Name field blank
    4. Choose an icon - preferably one that represents a social media site like Twitter, LinkedIn or YouTube
    5. Click Add next to Link
    6. In the Link dialog, type in the URL for Twitter, LinkedIn or Youtube
    7. Make sure to box to open link in a new window or tab i checked

    Link dialog for adding external links

    1. Hit submit to add the link

    Once you've completed the first item in the sub header, use the copy feature to create more, linking to other social media sites.

    Header layout

    The custom navigation is almost complete at this point.

    The final thing we are going to update is a few layout things.

    1. On the Home node, locate the Settings group
    2. Toggle Transparent Header to make the header transparent on the frontpage
    3. Under Transparent Header Color choose the light theme
    4. Save the Home node
    5. Navigate to the Theme settings node found under the Settings node in the Content tree
    6. Locate the Header group
    7. Set the Header Layout to navigation-left
    8. Hit Save
    9. Navigate back to the Home node
    10. Preview the node

    Custom navigation menu plus sub headers