Shopify Horizon Theme: Missing Accordion Headers? Here's How to Fix It!

Hey there, fellow store owners!

Ever stared at your beautiful Shopify store, scratching your head because something's just... missing? You know it should be there, but it's vanished into thin air? That's exactly the kind of head-scratcher one of our community members, RYDE, brought up recently. They were wrestling with their Horizon theme, specifically with the accordion menu, and noticed that the headers for their accordion sections were nowhere to be found. The content inside the dropdowns was perfectly visible, but the titles themselves? Poof! Gone.

It’s a frustrating situation, isn't it? You’ve put effort into organizing your product details, FAQs, or policy information into neat accordions, only for your customers to see a blank space where the title should be. RYDE had already checked the color settings and confirmed the text was indeed in the code, but it just wasn't rendering on either mobile or desktop.

Thankfully, our community is packed with brilliant minds, and Ploqo jumped in with some fantastic insights that really demystify this common problem. Ploqo pointed out a crucial detail about the Horizon theme: the title is actually the summary text, while the content panel underneath is a separate block. This distinction is key because it means the problem isn't with the content itself, but specifically with how that summary title is being displayed.

So, what could make a perfectly good title disappear? Ploqo nailed down the usual suspects: it's almost always a sneaky CSS rule. We're talking about things like font-size: 0, height: 0, visibility: hidden, or display: none. These rules can be accidentally introduced by custom CSS you might have added, or even by a third-party app that's trying to style something else and inadvertently affects your accordion headers.

Ploqo even managed to reproduce the issue on a Horizon store, showing exactly how the titles could vanish while the panel text remained: Horizon accordion with the titles hidden

Your First Steps to Troubleshooting Missing Accordion Headers

If you're facing this exact issue, don't fret! Here’s a clear action plan, inspired by Ploqo's expert advice:

  1. Confirm Your Heading Field: This might sound basic, but it's often overlooked. Open your Accordion section in the theme editor. Click on each row within the accordion and confirm that the Heading field actually contains your desired title. Remember, in Horizon, the title lives specifically in that Heading field, not as a block inside the row.
  2. Hunt for Custom CSS: This is where most issues hide.
    • Check your theme settings for any "Custom CSS" boxes or "Custom Liquid" blocks where you might have pasted code.
    • Think about any apps you installed around the time the titles disappeared. Some apps add their own styling that can conflict with your theme.
    • Dive into your theme code (under Online Store > Themes > Actions > Edit code). Use the search function to look for specific CSS properties that hide elements, like font-size:0, or class names related to accordions such as details__header or just summary.

A Quick Fix to Restore Your Titles

Sometimes, finding the exact conflicting CSS rule can feel like searching for a needle in a haystack. If you've tried the steps above and still can't pinpoint the source, Ploqo offered a brilliant "quick fix" that forces those titles back into visibility. You can add this CSS snippet to a Custom Liquid block on the page where your accordion is, or in your theme’s general Custom CSS box.

Here's the code you'll need:

What this code does is essentially override any sneaky hiding rules. The !important tag tells the browser, "Hey, this rule takes precedence over everything else!" It sets a standard font size, line height, and ensures both visibility and opacity are set to show the element.

And here's what it looks like when those titles are beautifully restored: Titles restored after one CSS rule

If, after trying this quick fix, your titles are still playing hide-and-seek, don't despair. Sometimes, the issue can be more specific to your unique setup. In those cases, sharing your store link with an expert (like Ploqo offered in the original thread) allows them to inspect your live site's CSS and point you to the exact rule causing the trouble.

This whole discussion really highlights the power and flexibility of running your store on Shopify, but it also reminds us that with great power comes the need for a little vigilance, especially when customizing your theme or adding new apps. Always keep an eye on how new additions might impact your existing design elements. The Shopify community is an incredible resource for these kinds of specific issues, proving that you're never truly alone when troubleshooting your online store. Keep experimenting, keep learning, and keep those accordions looking sharp!

Share:

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools