Navigation
There are two types of navigation: 'Primary' and 'Secondary'. The primary navigation is used in the theme header, while the secondary navigation is used in the footer.
Step-by-Step- To add a navigation, go to the 'Navigation' settings in the Ghost Admin.
- Once here, you can remove any navigation items that you want by using the trash icon to the right of the item. You can add new items by just typing them in. You can change the order by clicking on the icon on the left and dragging it to the spot you want – the new columns in the 'Secondary' navigation will appear automatically after a few items.
- Once your items are added, click 'OK' to activate new navigation on your site.
- You’ll need to open the theme’s
../partials/navigation.hbsfile in your code editor. - At the top, you’ll see the 'Header navigation' section.
- Replace the current
to="3"andfrom="4"value with your own, for exampleto="4"andfrom="5". - Save your
navigation.hbsfile in../partials/folder.
- To add your own column names, you’ll need to open the theme’s
../locales/en.jsonfile in your code editor. - Then, add your own translations, for example:
{
"Column 1": "About",
"Column 2": "Features",
"Column 3": "Support",
...
}
- Save your
en.jsonfile in../locales/folder.
- You’ll need to open the theme’s
../partials/navigation.hbsfile in your code editor. - At the middle, you’ll see the 'Footer navigation' section.
- The columns have a
limitandfromparameter, that needs to be changed. For example, to change the number of items to 4 for each column:
{{#foreach navigation limit="4"}}
...
{{#foreach navigation limit="4" from="5"}}
...
{{#foreach navigation from="9"}}
...
Another possible case is when you change elements up to e.g. 6 only for second column:
{{#foreach navigation limit="5"}}
...
{{#foreach navigation limit="6" from="6"}}
...
{{#foreach navigation from="12"}}
...
- Save your
navigation.hbsfile in../partials/folder.
Type at least 2 characters to search