I’m trying to split my navigation links so that there are 2 on either side of the centered logo. I found a related tutorial and while it did work to split the navigation, the first 2 links are too far to the left and overlapping with the search icon (for most screen widths). I want the 2 links to be equal distance from the logo on each side that also adjust with screen width.
This is the custom css I added as instructed by the tutorial:
-
Themes > More Options > Edit Code
-
Assets > add a new asset > create a blank file > create a custom.css
-
In theme.liquid find (Ctrl+F): {{ ‘base.css’ | asset_url | stylesheet_tag }}
-
Paste underneath the base.css line:
-
Open custom.css in Assets and paste the following:
.header__inline-menu {
position: absolute;
top: 25%; /* Adjust’s verticle position */
pointer-events: none; /* Disables Menu */
}
/* Chooses which menu item to target */
.list-menu–inline li:nth-child(#) { /* Change ‘#’ to the position (number) of the menu item to add the margin after */
margin-right: 175px; /* Adds a margin to break the menu in half */
}
/* Activates Menu Buttons */
.header__menu-item {
pointer-events: auto;
}
Can anyone help me adjust the spacing of the links? Thanks so much!
Screenshot for reference:
