User Agents

Web browsers and everyday web tech, explained

How to Add Tabs to Shopify Product Page

· 5 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Adding tabs to your Shopify product page organizes information like descriptions, shipping details, and reviews into clean, clickable sections. This improves readability and helps customers find what they need faster, which can lead to more conversions. You can achieve this using a free app, a paid app, or custom code. This guide covers the easiest methods, including the built-in Shopify theme editor approach and a code-based solution for more control.

What You'll Need

  • A Shopify store with admin access.
  • Basic familiarity with your theme's editor (for the app method).
  • If using custom code: access to your theme's code (via Online Store > Themes > Edit Code) and a basic understanding of HTML/CSS/Liquid.

Step-by-Step

Method 1: Using a Tabs App (Recommended for Most Users)

  1. Choose a tabs app. Go to the Shopify App Store and search for “product tabs.” Popular options include “Product Tabs” by HulkApps, “Tabs Studio,” or “Product Description Tabs.” Look for one with good reviews and a free plan.
  2. Install the app. Click “Add app” and follow the installation prompts. Grant the necessary permissions when asked.
  3. Create your tabs. Open the app from your Shopify admin (Apps > [App Name]). Most apps let you create a set of tabs (e.g., Description, Shipping, Reviews). You can add content to each tab using a text editor, HTML, or a rich text editor.
  4. Assign tabs to products. In the app, you can usually select specific products or collections to apply the tabs to. Some apps automatically add tabs to all products by default.
  5. Customize the appearance. Adjust the tab style (e.g., accordion vs. horizontal tabs), colors, and fonts to match your theme.
  6. Save and preview. Save your settings and open a product page to see the tabs in action. If they don't appear, check the app's documentation for theme compatibility.

Method 2: Manual Code (For Custom Themes or Full Control)

  1. Back up your theme. In Shopify admin, go to Online Store > Themes > Actions > Duplicate. This ensures you can revert if something breaks.
  2. Edit the product template. Go to Online Store > Themes > Actions > Edit Code. In the “Templates” folder, find the file that renders your product page (often named product.liquid or product.json).
  3. Add tab markup. Locate the section that outputs the product description (usually ). Wrap it in a container with tabs. Example HTML structure: <div class="product-tabs"> <ul class="tab-nav"> <li data-tab="tab1" class="active">Description</li> <li data-tab="tab2">Shipping</li> </ul> <div id="tab2" class="tab-content">Your shipping info here.</div> </div>
  4. Add CSS and JavaScript. In your theme's CSS file (e.g., theme.css), add styles for the tabs. Then in your theme's JavaScript file (e.g., theme.js), add a simple script to show/hide tab content on click. Example:
    document.querySelectorAll('.tab-nav li').forEach(function(tab) {
      tab.addEventListener('click', function() {
        document.querySelectorAll('.tab-nav li').forEach(function(t) { t.classList.remove('active'); });
        document.querySelectorAll('.tab-content').forEach(function(c) { c.style.display = 'none'; });
        this.classList.add('active');
        document.getElementById(this.dataset.tab).style.display = 'block';
      });
    });
  5. Save and test. Save all changes, then preview a product page to ensure the tabs work correctly.

Common Mistakes

  • Not checking theme compatibility. Some themes may not support app-based tabs due to conflicting scripts. Always test on a duplicate theme first.
  • Placing tabs in the wrong template. If you edit the wrong file (e.g., the collection template instead of product), tabs won't show.
  • Forgetting to close HTML tags. In manual code, a missing </div> can break the entire layout.
  • Using too many tabs. Overloading with tabs can overwhelm customers; stick to 3-5 clear sections.

Tips

  • Use tabs to separate “Description” from “Additional Info” like materials, care instructions, or size charts.
  • For SEO, keep the most important content (like the product description) in the first tab, but ensure it's still visible to search engines—some apps render tabs as hidden content, which may be less crawlable.
  • If you use a code solution, consider using a well-tested library like jQuery UI Tabs to avoid cross-browser issues.
  • Always test on mobile—tabs should be touch-friendly and not too small to tap.

Troubleshooting

  • Tabs not showing. Check if the app is enabled for the product. In the app, ensure you've selected the product or collection. If using code, verify that the template file you edited is actually being used (some themes use product.json with sections).
  • Tab content appears stacked. This usually means JavaScript isn't running. Check the browser console for errors, and ensure your script is loaded after the DOM (wrap it in document.addEventListener('DOMContentLoaded', ...)).
  • Styling conflicts. Your theme's CSS may override tab styles. Use more specific selectors or add !important temporarily to test.
  • App tabs not working after theme update. Re-check app settings; sometimes theme updates break app integrations. Contact the app's support.

Frequently Asked Questions

Do tabs affect my SEO?

Generally, tabs are fine for SEO as long as the content is still in the HTML. However, if content is hidden behind clicks, some search engines may give it less weight. To be safe, ensure the first tab (often the description) is visible by default.

Can I add tabs to only some products?

Yes, most apps allow you to assign tabs to specific products or collections. With manual code, you can use Liquid conditionals to show tabs only on certain products based on tags or types.

Will tabs work on my free theme?

Most free themes are compatible with tabs apps. If you're using manual code, it should work with any theme, but you may need to adjust selectors.

Can I add tabs to product variants?

Tabs are typically at the product level, not variant level. However, you can use Liquid to show different tab content based on the selected variant if you code it manually.

Is it better to use an app or code?

Apps are easier and require no coding, but they may add extra page weight and monthly fees. Code gives you full control and is lighter, but requires technical skills.

Can I move tabs above the buy button?

Yes, with code you can reposition the tab container anywhere in the product template. Apps may have a setting for placement, or you can use CSS to reorder elements.