Ever found yourself staring at your Shopify store, thinking, "This looks great, but what are these lines doing here?" It's a common frustration, especially when you're aiming for a clean, minimalist aesthetic. Recently, our community saw a great discussion pop up around this very issue, with store owner dlgillihan asking for help removing some persistent divider lines, particularly in their footer, using the Atlantic theme.
It's a familiar scenario: you love your theme, but a few small styling elements just don't quite fit your brand vision. These little lines can make a big difference in the overall feel of your site. Let's dive into what the community suggested and how you can tackle these pesky borders on your own Shopify store.
The Case of the Stubborn Footer Lines
dlgillihan kicked off the thread with a clear request: how to remove divider lines in the footer section, affecting both desktop and mobile views. They even shared some screenshots, which are always super helpful for the community to diagnose the problem.
It's a classic case of a theme having a default style that just doesn't quite align with your aesthetic goals. Luckily, our resident code wizards were quick to jump in!
The Quick Fix for Footer Lines
The solution that ultimately worked for dlgillihan came from community member Moeed. It involved adding a small snippet of CSS directly into the theme's code. This is often the most direct way to override default theme styling.
Here's how you can implement this fix for your footer:
From your Shopify admin, navigate to Online Store > Themes.
Find your current theme (like Atlantic) and click Actions > Edit code.
In the file list on the left, locate the theme.liquid file under the "Layout" directory.
Scroll down to the very bottom of the theme.liquid file. You're looking for the closing
tag.
Important: Before making any changes, it's always a good idea to duplicate your theme first. This creates a backup, so if anything goes wrong, you can easily revert.
Just above the tag, paste the following code:
Click Save.
After applying this, dlgillihan confirmed it worked for their footer! The !important tag in the CSS is crucial here; it tells the browser to prioritize this style over any other conflicting styles defined elsewhere in your theme, ensuring those lines disappear.
Beyond the Footer: Tackling Borders Across Your Store
Once the footer was sorted, dlgillihan had a great follow-up question: "There are other locations throughout our page that have the same border lines. Is there a way to take those out as well?" This is where the conversation broadened, offering some excellent general advice for theme customization.
Another helpful community member, ZestardTech, pointed out that many theme borders come from a common class like has-border applied to sections. This is a fantastic insight because it gives you a starting point for a more global approach.
Two Ways to Find and Remove General Borders:
1. Check Your Theme Customizer First
Before diving into code, always check your theme's customization options. Many modern Shopify themes, especially premium ones like Atlantic, offer built-in settings to control section borders. Look for options like "Section spacing" or "Border style" within the theme editor (Online Store > Themes > Customize). You might find a simple toggle or dropdown that saves you from editing code!
2. Custom CSS for Specific Borders (and the has-border class)
If there's no theme setting, custom CSS is your next best friend. The key is to identify the specific CSS class or ID that's applying the border. This often requires a little developer tool magic:
Inspect the Element: On your store, right-click on the line you want to remove and select "Inspect" (or "Inspect Element"). This will open your browser's developer tools.
Identify the CSS: Look in the "Elements" or "Styles" panel. You'll see the HTML structure and the CSS rules applied to that element. Look for properties like border-bottom, border-top, border, or classes like has-border.
Apply Custom CSS: Once you've identified the problematic class or ID (e.g., .page-title or a section with .has-border), you can add custom CSS to override it. You can add this CSS to your theme.liquid file (just like the footer example) or, even better, to your theme's dedicated CSS file (often named something like base.css, theme.css, or custom.css in the "Assets" folder).
For example, ZestardTech specifically mentioned that page titles sometimes have borders. If you find a border under your page titles, you could add this CSS:
.page-title {
border-bottom: unset !important;
}
Similarly, if you identify a section using a has-border class, you might add something like:
Remember to replace .section-with-border with the actual class of the section you're targeting. Or, if the border is coming from the has-border class itself, a more general approach might be:
.has-border {
border: none !important;
}
However, be cautious with very broad CSS rules like the last one, as they might remove borders you actually want elsewhere. Always test thoroughly!
What this community discussion really highlights is the power of a little custom CSS and knowing how to inspect your page elements. With these tools, you're not just stuck with your theme's defaults; you can truly tailor your Shopify store to reflect your unique brand. Don't be afraid to experiment (always with a theme backup!), and remember, the Shopify community is an incredible resource if you get stuck!
Share:
Use cases
Explore use cases
Agencies, store owners, enterprise — find the migration path that fits.