add

How to Create Tabs in Blogger Post - Tabbed Content Without Plugin 2026

 

Blogger post long? Readers skip. Tabs solve: Features | Demo | Download | FAQ in one place, click to switch. No plugin, no slow.

In Post #120, add tabs in Blogger post - copy paste.

Step 1: Add Tabs CSS + JS Once in Theme

  1. Blogger → Theme → Edit HTML
  2. Find ]]></b:skin>
  3. Paste CSS above it:
/* Tabs Post 120 */
.tab-wrapper{margin:20px 0;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;}
.tab-buttons{display:flex;background:#f9fafb;overflow-x:auto;}
.tab-buttons button{padding:12px 18px;border:none;background:transparent;cursor:pointer;font-weight:bold;white-space:nowrap;border-bottom:3px solid transparent;}
.tab-buttons button.active{border-bottom:3px solid #000;background:#fff;}
.tab-content{display:none;padding:18px;}
.tab-content.active{display:block;}
  1. Find </body> and paste this JS just above it:
<script>
function openTab(evt, tabId){
  var wrapper = evt.target.closest('.tab-wrapper');
  var contents = wrapper.querySelectorAll('.tab-content');
  var buttons = wrapper.querySelectorAll('.tab-buttons button');
  contents.forEach(c=>c.classList.remove('active'));
  buttons.forEach(b=>b.classList.remove('active'));
  wrapper.querySelector('#'+tabId).classList.add('active');
  evt.target.classList.add('active');
}
</script>
  1. Save theme

Step 2: Add Tabs in Any Blogger Post - Copy Paste in HTML Mode

<div class="tab-wrapper">
  <div class="tab-buttons">
    <button class="active" onclick="openTab(event,'tab1')">Features</button>
    <button onclick="openTab(event,'tab2')">Demo</button>
    <button onclick="openTab(event,'tab3')">Download</button>
    <button onclick="openTab(event,'tab4')">FAQ</button>
  </div>

  <div id="tab1" class="tab-content active">
    <h3>✨ Features</h3>
    <ul>
      <li>✅ Mobile Friendly</li>
      <li>✅ Fast Loading - 98 PageSpeed</li>
      <li>✅ SEO Optimized</li>
      <li>✅ AdSense Ready</li>
    </ul>
  </div>

  <div id="tab2" class="tab-content">
    <h3>👀 Live Demo</h3>
    <p>Check demo before download.</p>
    <a href="YOUR-DEMO-LINK" style="background:#fff;color:#000;border:2px solid #000;padding:10px 18px;border-radius:6px;text-decoration:none;display:inline-block;font-weight:bold;">View Demo →</a>
  </div>

  <div id="tab3" class="tab-content">
    <h3>📦 Download</h3>
    <p>File: template.zip - Size: 1.2MB - Version 2.0</p>
    <a href="YOUR-DOWNLOAD-LINK" style="background:#000;color:#fff;padding:12px 22px;border-radius:8px;text-decoration:none;display:inline-block;font-weight:bold;">Download Now ↓</a>
  </div>

  <div id="tab4" class="tab-content">
    <h3>❓ FAQ</h3>
    <p><strong>Q: Free?</strong> Yes free forever.</p>
    <p><strong>Q: Need coding?</strong> No.</p>
  </div>
</div>

Step 3: 2nd Example - Pricing Tabs (Monthly / Yearly)

<div class="tab-wrapper">
  <div class="tab-buttons">
    <button class="active" onclick="openTab(event,'price1')">Monthly</button>
    <button onclick="openTab(event,'price2')">Yearly - Save 20%</button>
  </div>
  <div id="price1" class="tab-content active" style="text-align:center;">
    <h3>₦5,000 / month</h3>
    <a href="LINK" style="background:#000;color:#fff;padding:12px 22px;border-radius:8px;text-decoration:none;display:inline-block;font-weight:bold;">Buy Monthly</a>
  </div>
  <div id="price2" class="tab-content" style="text-align:center;">
    <h3>₦48,000 / year (Save ₦12,000)</h3>
    <a href="LINK" style="background:#22c55e;color:#fff;padding:12px 22px;border-radius:8px;text-decoration:none;display:inline-block;font-weight:bold;">Buy Yearly</a>
  </div>
</div>

Step 4: Fix - Multiple Tab Wrappers in Same Post?

Code supports multiple tab wrappers in same post. Just change IDs unique: tab1, tab2 → Use tabA1, tabA2 for second wrapper, tabB1, tabB2 for third.

Step 5: SEO & Mobile Friendly?

  • Google reads all tab content (not hidden from SEO) - 100% SEO friendly
  • Mobile: Tab buttons scroll horizontally if many tabs - no break
  • No external JS - only 10 lines JS - no slow

Post #120 Complete - You now have tabbed content like WordPress.

Next Post #121 from your CSV: How to Create Table of Contents in Blogger - Auto TOC without plugin - this is your most important SEO post.

Post a Comment

0 Comments