Hi @Letitania ,
Step 1: Create Separate Menus in Shopify Admin
Go to your Shopify admin panel.
Navigate to Online Store > Navigation.
Create two new menus, for example, Left Menu and Right Menu. Add the desired links to each menu.
Step 2: Access the Theme Code
Log in to your Shopify admin panel.
Go to Online Store > Themes.
Find the Dawn theme and click on “Actions” > “Edit code”.
Step 3: Edit the Header File
Find the header.liquid file in the Sections folder.
Open the header.liquid file.
Step 4: Modify the Menu Code
You need to use the menus you created in the Shopify admin panel.
Replace the existing menu code with the following:
{% assign left_menu = linklists['left-menu'] %}
{% if left_menu.links.size > 0 %}
{% for link in left_menu.links %}
{{ link.title }}
{% endfor %}
{% else %}
No items in Left Menu
{% endif %}
{% assign right_menu = linklists['right-menu'] %}
{% if right_menu.links.size > 0 %}
{% for link in right_menu.links %}
{{ link.title }}
{% endfor %}
{% else %}
No items in Right Menu
{% endif %}
Step 5: Style the Menu with CSS
Find the theme’s CSS file in the Assets folder (e.g., theme.css or theme.scss.liquid).
Add CSS rules to style the left and right menus and position them accordingly:
.menu-left {
float: left;
display: inline-block;
}
.logo {
display: inline-block;
text-align: center;
margin: 0 auto;
}
.menu-right {
float: right;
display: inline-block;
}
.site-navigation a {
padding: 10px;
text-decoration: none;
color: #000;
}
I hope this helps! If it does, please like it and mark it as a solution!
If you need further assistance, feel free to reach out!
Regards,
Sweans