How to Configure the Navigation Bar
By olayway
A step-by-step guide to customizing your site's navigation bar with logos, links, and social media
This tutorial will guide you through the process of customizing your Flowershow Cloud site's navigation bar. You'll learn how to add your logo, customize the title, create navigation links, and integrate social media links.
Prerequisites
Before you begin, make sure you have:
- A Flowershow Cloud site set up
- Basic knowledge of JSON format
- Your logo image ready (if you plan to use a custom logo)
Step 1: Create the Configuration File
- Navigate to the root folder of your site's repository
- Create a new file named
config.json
.
Step 2: Customize Your Logo and Site Title
- Upload your logo file to your site's repository. (Skip if you're using a file hosted outside of your repository.)
- Add your logo path (or URL) to the
nav.logo
field - Set your site title in the
nav.title
field
Example:
{
"nav": {
"logo": "logo.jpeg",
"title": "My Digital Garden"
}
}
The result:
Step 3: Add Navigation Links
Add your navigation links to the nav.links
array. Each link requires:
name
: The text that appears in the navigation barhref
: The URL or path the link points to
Example:
{
"nav": {
"links": [
{
"href": "/blog",
"name": "Blog"
},
{
"href": "/about",
"name": "About"
}
]
}
}
The result:
Step 4: Add Social Media Links
Add social media links to the nav.social
array. Each social link requires:
label
: Platform identifier (see supported platforms below)name
: Text label (used in sidebar mode)href
: Your social media profile URL
Supported social platforms:
- github
- discord
- x
- youtube
Example:
{
"nav": {
"social": [
{
"label": "github",
"name": "GitHub Profile",
"href": "https://github.com/yourusername"
},
{
"label": "twitter",
"name": "Follow me on Twitter",
"href": "https://twitter.com/yourusername"
}
]
}
}
The result:
On smaller screens:
Complete Configuration Example
Here's a comprehensive example combining all the elements:
{
"nav": {
"logo": "logo.jpeg",
"title": "My Digital Garden",
"links": [
{
"href": "/blog",
"name": "Blog"
},
{
"href": "/about",
"name": "About"
}
],
"social": [
{
"label": "github",
"name": "GitHub Profile",
"href": "https://github.com/yourusername"
},
{
"label": "twitter",
"name": "Follow me on Twitter",
"href": "https://twitter.com/yourusername"
}
]
}
}
Troubleshooting
Common issues and solutions:
-
Logo not appearing?
- Verify the logo path is correct relative to your site's root folder
- Ensure the image file exists at the declared path
-
Social icons not showing?
- Double-check that you're using supported platform labels