Shopify Development

Clean Up Your Shopify Design: A Guide to Removing Footer Lines and Borders

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, sometimes making it appear cluttered or outdated. Achieving a polished, professional look often comes down to these subtle design tweaks. Let's dive into what the community suggested and how you can tackle these pesky borders on your own Shopify store, ensuring your brand vision shines through.

Shopify theme.liquid file with custom CSS for border removal
Shopify theme.liquid file with custom CSS for border removal

The Case of the Stubborn Footer Lines: A Common Shopify Challenge

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. These images clearly showed horizontal lines segmenting the footer content, a common default styling in many Shopify themes, including Atlantic.

While these borders might serve a purpose in some designs, they can disrupt a seamless aesthetic. For merchants striving for a modern, uncluttered look, removing these lines becomes a priority. The good news is that with a little understanding of Shopify's theme architecture and some basic CSS, you can take control of your store's visual presentation.

Before You Begin: Always Duplicate Your Theme!

Before making any code changes, it's crucial to follow Shopify's best practice: always duplicate your live theme. This creates a backup, allowing you to experiment freely without risking your active store. If anything goes wrong, you can simply revert to your original theme or publish the duplicate once your changes are tested and confirmed.

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to edit, click the Actions button, and select Duplicate.
  3. Work on the duplicated theme.

Solution 1: Targeted CSS Injection for Footer Elements

One of the most effective and direct methods for removing specific borders is to inject custom CSS. Moeed provided a precise solution for the Atlantic theme's footer:

Step-by-Step Guide:

  1. From your Shopify admin, go to Online Store > Themes.
  2. On your duplicated theme, click Actions > Edit code.
  3. In the left sidebar, find the theme.liquid file under the Layout directory.
  4. Scroll to the very bottom of the theme.liquid file, just above the closing tag.
  5. Add the following CSS code:

Explanation: This CSS snippet targets specific elements within the footer (.main-footer .connect>li, .main-footer .connect) and the mobile "back to top" button (.back-to-top--mobile). The border: unset !important; declaration removes any existing borders and ensures this rule takes precedence over other styles, effectively eliminating those stubborn lines.

Solution 2: Identifying and Removing the has-border Class

ZestardTech offered another insightful approach: identifying a common class like has-border. Many themes use utility classes to apply styles, and removing these classes from the HTML can be a cleaner solution than overriding with CSS.

How to Investigate with Developer Tools:

  1. Open your store in a web browser.
  2. Right-click on an area with an unwanted border and select Inspect (or Inspect Element).
  3. In the developer tools panel, navigate through the HTML structure. Look for elements that have classes like has-border, section-border, or similar descriptive names.
  4. Observe the CSS rules applied to these elements to confirm they are indeed responsible for the border.

Applying the Fix:

If you find a `has-border` class (or similar) on a section or snippet that you want to modify:

  1. Go to Online Store > Themes > Actions > Edit code.
  2. Search for the relevant section or snippet file (e.g., footer.liquid, section-name.liquid).
  3. Locate the HTML element with the offending class and simply remove the class attribute (e.g., change
    to
    ).

Pro Tip: Some themes might offer a toggle within the theme customizer (Online Store > Themes > Customize) to enable or disable borders for specific sections. Always check here first, as it's the easiest and safest method!

Beyond the Footer: Removing Borders Throughout Your Store

dlgillihan's follow-up question about removing lines in other locations, such as below page titles, is common. The same principles apply:

  1. Inspect Element: Use your browser's developer tools to identify the specific CSS class or ID responsible for the border (e.g., .page-title, .section-header).
  2. Add Custom CSS: If you find a class like .page-title, you can add another CSS rule to your theme.liquid file (or better yet, your theme's dedicated CSS file like base.css or theme.css if you're comfortable) to remove its border:
.page-title {
    border-bottom: unset !important;
}

This will target the border specifically below page titles. Repeat this process for any other persistent lines you wish to remove.

When to Call in the Experts

While these methods are generally straightforward, diving into theme code can be daunting for some. If you're uncomfortable with CSS or Liquid, or if your theme has more complex styling that requires advanced modifications, don't hesitate to seek professional help. At Shopping Cart Mover, we specialize in Shopify development and migrations, ensuring your store looks and functions exactly as you envision, without the hassle of manual code edits.

Conclusion

Achieving a clean, modern aesthetic on your Shopify store often involves fine-tuning the details. Removing unwanted footer lines and section borders, as demonstrated by the community's helpful responses, is a fantastic way to declutter your design and enhance your brand's professional image. Whether you opt for a quick CSS fix or a more in-depth code inspection, remember to always work on a duplicated theme and test your changes thoroughly. A polished design not only looks good but also contributes to a better user experience, encouraging visitors to explore and convert.

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases