Google Partner Utah SEO, AEO & digital marketing agency
Web Dev & Design

How To Build Advanced Toggle In WordPress & Elementor

Elementor's toggle widget handles basic show and hide. This builds the version that actually works on a live site: crawlable markup, sensible mobile behaviour, and no extra plugin.

7:10 watchMay 11, 2026Web Dev & Design
5POINTS TO KEEP A LOOK AT
1Video
AllSkill Level
7:10MINUTES ONLY!
What you'll learn

5 things you can act on after watching

  • Pricing tables
  • Service breakdowns
  • Product features
  • FAQs
  • Package comparisons
Overview

Building a toggle that search engines can still read

Toggles solve a real layout problem. A page has more information than a visitor wants in one go, and hiding the detail behind a click keeps the page scannable without deleting anything.

They also create two problems people only discover later. One is that collapsed content sometimes does not get indexed, which is a myth in some cases and true in others. The other is that a toggle built badly becomes unusable on a phone.

Does hidden content still get indexed

This is the question that matters and the answer is more specific than yes or no.

If the content is present in the page's HTML and simply hidden with CSS, search engines can read it. Google has been explicit that it renders pages and can see content behind tabs and accordions. The Elementor toggle widget works this way: the text is in the source, the widget just controls its visibility.

If the content is loaded by JavaScript only after someone clicks, it may not be in the rendered HTML at all, and then it genuinely can be missed. That is the distinction. Native Elementor toggles are in the safe category. Some third party widgets are not.

One caveat worth knowing: content that is visible by default is generally weighted a little more than content a user has to reveal. So the thing you most want to rank for belongs above the toggle, not inside it.

Toggle or accordion

  • Accordion closes the other sections when one opens. Good when the sections are alternatives and you want the page height stable.
  • Toggle lets several sections stay open at once. Good for FAQs and reference content where someone may want two answers side by side.

Building it

  1. Drop the toggle widget into the container where the content belongs. Keep it inside the main content width rather than full bleed, so line lengths stay readable.
  2. Add your items. Keep the titles short enough to fit on one line on a phone, because a three line toggle title is a bad tap target.
  3. Set the title HTML tag deliberately. If these are FAQ questions, H3 under an H2 is usually right. Do not leave everything as a div, because the heading structure is part of how the page is understood.
  4. Style the icon and its active state. The user needs to see at a glance which items are open.
  5. Check the spacing between items on mobile separately. The desktop spacing is almost always too tight once the titles wrap.
  6. Decide whether the first item should be open on load. For an FAQ, opening the first one shows people the thing is interactive.

The part most tutorials skip

If the toggle holds questions and answers, add FAQ structured data for the same content. Elementor does not do this for you. Rank Math or a small block of JSON-LD in an HTML widget will do it, and it makes the page eligible for an expanded result in search.

Also check the tap target size. The clickable area should be the whole title row, not just the text. If a visitor has to hit a fourteen pixel chevron on a phone, the toggle is decorative rather than functional.

When not to use one

If the page has three paragraphs of content, a toggle is hiding the fact that the page is thin rather than solving a density problem. And if the hidden content is the reason someone came to the page, putting it behind a click adds friction to the thing you most want them to read.

Key takeaways

  • Content inside a toggle is in the HTML and is crawlable. Content injected by JavaScript after load often is not.
  • Never put your primary keyword content behind a toggle that collapses on mobile unless the HTML still contains it.
  • The accordion and toggle widgets look similar. Accordion closes siblings, toggle lets several stay open. Pick deliberately.
  • Use the native widget before reaching for a plugin. Every extra plugin is weight on every page load.
  • If the toggle is an FAQ, mark it up as FAQ schema too, or you are leaving a rich result on the table.

Here’s a Step-by-Step Guide to Creating an Advanced Toggle in WordPress

  1. Step 1: Install the Required Plugin

    To create advanced toggles in WordPress, you need a plugin that extends Elementor’s default functionality.

    Common options include:

    • ElementsKit (recommended in this tutorial)
    • Other Elementor add-ons with toggle widgets

    Once installed, activate the plugin and ensure it is working inside your WordPress dashboard.

  2. Step 2: Open Your Page in Elementor

    Next, navigate to:

    • The page where you want the toggle to appear, OR
    • The Elementor template section if you want reusable toggles across multiple pages

    Then:

    • Add a new section
    • Search for the “Advanced Toggle” widget (from your plugin)

    This is where your toggle structure will be built.

  3. Step 3: Create Your Toggle Content Using Templates

    Advanced toggles rely heavily on templates.

    Each toggle option represents a separate content block.

    You can:

    • Copy existing page sections
    • Paste them into toggle tabs
    • Or build new structured content inside templates

    Each tab should represent a specific piece of information users can switch between.

  4. Step 4: Build Additional Toggle Sections

    Once your first toggle is created:

    • Duplicate your template
    • Or create new ones for additional tabs

    This allows you to build:

    • Multi-option pricing tables
    • Service comparisons
    • Feature breakdowns
    • Structured FAQs

    You can also use pre-built templates from Elementor or ElementsKit to speed up the process.

  5. Step 5: Customize, Style, and Publish

    v

In depth

Google Trend FAQs

FAQs

Questions people ask about this

Does Google index content inside an Elementor toggle?

Yes, when the content is present in the page HTML and only hidden with CSS, which is how the native Elementor toggle widget works. Google renders pages and can read content behind tabs and accordions. Content that is only loaded by JavaScript after a click is a different case and may not be seen.

What is the difference between the toggle and accordion widgets?

An accordion closes the other sections when one is opened, keeping the page height stable and treating the sections as alternatives. A toggle lets several sections be open at the same time, which suits FAQs and reference content where someone may want to compare two answers.

Should I put important keyword content inside a toggle?

Put it above the toggle instead. Content visible by default tends to carry slightly more weight than content a visitor has to reveal, and the material you most want to rank for should not require a click to see.

Do I need a plugin to build an advanced toggle in Elementor?

Usually not. The native widget handles the behaviour, and styling, heading tags and spacing cover most of what people reach for plugins to achieve. Every additional plugin adds weight to every page load, so it is worth exhausting the built-in widget first.

How do I make a toggle work properly on mobile?

Keep titles short enough to avoid wrapping, make the entire title row the tap target rather than just the icon, and set mobile spacing separately since desktop spacing is almost always too tight once titles wrap. Test with a thumb, not a cursor.

Should toggle content have FAQ schema?

If the toggles contain questions and answers, yes. Elementor does not generate the structured data for you, so add it through Rank Math or a JSON-LD block. Without it the page is not eligible for the expanded FAQ result in search.

Next step

Need Help Building High-Converting WordPress Websites?

Our in-house team works directly with US-based marketers. Tell us what you are trying to grow and we will tell you what we would do first.

ENES