Mobile Footer Makeover: Aligning Copyright & Policy Links in Shopify's Horizon Theme
I recently stumbled upon a great discussion in the Shopify community that tackled this exact issue. Our friend PoW8 kicked things off, asking how to align their copyright text left on mobile and get those pesky middle lines (likely policy links) to combine into one. It was a classic "looks right on desktop, but mobile is a mess" scenario, and the community really rallied to help.
First Stop: The Theme Editor (Always!)
Before diving into any code, the absolute first thing you should always do when customizing your Shopify store is check the theme editor. This was a fantastic point raised by DiegoCosta2428 in the thread, and it’s something I always preach. Why? Because if there's a setting for it, it's the cleanest, most update-proof fix you can get.
Here’s how to check:
- Go to your Shopify admin and navigate to Online Store > Themes.
- Click Customize on your active Horizon theme.
- In the theme editor, scroll down to your Footer section.
- Click on the specific block that contains your copyright text (it's often called a "Utilities" or a "Text" block within the footer).
- Look for any alignment options or settings related to text layout. If you find a "Left" alignment option, set it and save! You're done, and your theme updates won't break it.
Unfortunately, as PoW8's experience showed, these built-in options aren't always available for every specific alignment need. That's when we roll up our sleeves and get into some custom CSS.
When Code Calls: Custom CSS for Mobile Alignment and Link Wrapping
If the theme editor doesn't offer a direct solution, custom CSS is your best friend. DiegoCosta2428 provided a robust CSS snippet that addresses both left alignment and the common issue of policy links wrapping onto multiple lines. This is super helpful because it specifically targets mobile screens, ensuring your desktop layout remains untouched.
Here’s the code they suggested:
@media screen and (max-width: 749px) {
.footer-utilities {
align-items: flex-start;
text-align: left;
}
.footer-utilities a {
white-space: nowrap;
}
}Let's break down what this code does and how to implement it:
@media screen and (max-width: 749px): This is a media query. It tells the browser, "Only apply these styles when the screen width is 749 pixels or less" – perfect for targeting mobile devices..footer-utilities: This is a common class name for the footer utility section in Shopify themes. It's where your copyright and policy links often reside.align-items: flex-start;: If your footer utilities are using Flexbox (which is very common in modern themes like Horizon), this property aligns the items to the start (left) of the container.text-align: left;: This is the classic CSS property for aligning text to the left..footer-utilities a { white-space: nowrap; }: This is the magic touch for those wrapping policy links! It tells any links within the footer utilities section to "not wrap" – they'll stay on a single line. Just be sure to test this on very narrow phones, as DiegoCosta2428 wisely pointed out, it could push the row wider than the screen if your links are super long.
How to Add This Custom CSS:
- From your Shopify admin, go to Online Store > Themes.
- Find your Horizon theme, click the Actions button, and select Edit code.
- Look for a file named
theme.liquid,base.css, or sometimes there's a dedicated Theme settings > Custom CSS area. DiegoCosta2428 specifically recommended pasting it under Theme settings > Custom CSS, which is usually the cleanest spot for custom snippets as it doesn't modify core theme files directly. - Paste the CSS code into the file or the Custom CSS box.
- Important: Always duplicate your theme before making code changes! This creates a backup you can revert to if anything goes wrong. Shopify Support generally doesn't troubleshoot custom forum code, so having a backup is crucial.
- Save your changes and preview your store on a mobile device.
The Community's Specific Solutions and PoW8's Breakthrough
The thread also saw Moeed jump in with a more specific CSS solution, targeting a very particular div ID:
While this code worked for Moeed and was suggested to PoW8, it's worth noting that IDs like shopify-section-sections--28708504895764__footer_utilities_hy6DYA are often dynamically generated and can change between themes, sections, or even updates. So, while it's a valid approach if you can pinpoint the exact ID for your store, the more general .footer-utilities class is usually a safer bet for broader application. Moeed suggested adding this within the theme.liquid file, right above the


