Shopify Theme Customization: Mastering Mobile Header Layouts & Hamburger Icons on Atlantic Theme
Unlocking Advanced Mobile Customization in Your Shopify Atlantic Theme
Hey everyone! As a Shopify expert and someone who loves digging into what real store owners are talking about, I often come across some fantastic discussions in the Shopify Community. Recently, a thread popped up that I just had to share insights from, because it tackles a couple of very common pain points when it comes to theme customization, especially on mobile.
Our fellow merchant, dlgillihan, was looking for some specific tweaks to their Atlantic theme: changing the mobile menu (that trusty 'hamburger' icon) from three lines to two, and then rearranging the mobile header so the logo is on the left and the menu/search icons are neatly tucked away on the right. They also had a quick question about H4 & H5 headings always appearing in all caps. Sound familiar? Let's dive into how the community tackled these!
First Things First: Always Duplicate Your Theme!
Before we even think about touching a single line of code, there's one golden rule that Pratham_Jani wisely pointed out:
Worth noting: before editing any code, duplicate your theme first so you always have a clean backup to roll back to if anything breaks.
This is non-negotiable! Always go to Online Store > Themes, find your current theme, click Actions > Duplicate. This creates a safe, working copy of your store that you can experiment with without affecting your live site. Trust me, it'll save you a headache later and is the hallmark of any professional Shopify developer. If you're looking to start your own e-commerce journey or migrate an existing store to a platform that offers this level of customization and flexibility, starting a Shopify store is an excellent choice.
Customizing Your Mobile Menu Icon (The Hamburger)
The standard three-line hamburger icon is functional, but sometimes you want a cleaner, more minimalist look, like two lines. The community offered a couple of great ways to achieve this, each with its own advantages.
Method 1: Directly Editing the SVG File (Recommended for Cleanliness)
This approach, suggested by Pratham_Jani, is often the cleanest because you're modifying the source of the icon itself. This means the change is fundamental and less likely to be overridden by other styles.
- Go to Online Store > Themes.
- Find your duplicated theme and click Actions > Edit Code.
- In the code editor, search for a file named
icon-hamburger.svg. This file is typically located in thesnippets/directory or sometimes directly in theassets/folder, depending on your theme's structure. - Open the
.svgfile. You will see XML-like code defining the lines of the icon. A typical three-line hamburger SVG might look something like this (simplified):
- To change it to two lines, simply locate and delete the code defining the middle line. In the example above, you would remove the line containing
M17 6H0V5H17V6Z(or similar coordinates). - Click Save. Your hamburger icon should now display two lines.
Method 2: Overriding with CSS (Quick & Effective)
Maximus3 provided a clever CSS-only solution that overrides the SVG path directly. This is faster if you don't want to dig into the SVG file itself, but it's important to understand how it works.
- Go to Online Store > Themes > Edit Code.
- Open
theme.liquid(usually under theLayoutfolder). - Scroll to the very bottom of the file, just before the closing