I am trying to do a couple of things on my Atlantic Theme. One, I would like to change the mobile menu icon from 3 lines to 2. I would also like to move the menu icon and search icon to the right side of the mobile page, and move my logo to the left side. Is this possible?
You could potentially change the actual rendered path in the header file to make sure it doesn’t have any negative impact like layout shift.
For putting the logo on the left, and the menu and search on the right would probably not be a good idea with css alone, and rearranging the actual html elements in the header file might be a better fit.
If the theme does not allow to relocate logo on mobile, try this – can go into header section “Custom CSS”, or “Theme settings” (cog icon)->“Custom CSS”, or together with the code above, right before the </style> tag.
@media (max-width: 959px) {
.main-header--tools-left {
justify-content: flex-end !important; /* relocate the menu/search buttons */
}
.store-title.store-logo {
margin-left: 0rem ! important; /* amend logo position -- can be negative to move it left */
width: 33%; /* amend logo width */
}
.tool-container,.main-header--tools-left {
gap: 0.5rem; /* more gap to allow for fat fingers */
}
}
Yes, all three of those are possible without needing to touch a third-party app. Here is how to do each one.
1. Change the hamburger from 3 lines to 2
You will need to edit the SVG icon directly in your theme code. Go to Online Store > Themes > Edit Code and search for a file called icon-hamburger.svg or look inside snippets/ for anything named around hamburger or menu. You will see something like this:
Simply delete the middle line (the y1="12" one) and save. That gives you a clean 2-line icon.
2. Move the menu and search icons to the right, logo to the left
Atlantic’s mobile header is typically controlled in header.liquid or sections/header.liquid. Look for a block that wraps the mobile header layout, it usually has classes like .header__mobile or similar.
The layout is controlled by flexbox. Add this to your theme’s CSS (Online Store > Themes > Edit Code > assets/theme.css or wherever Atlantic keeps its custom styles):