Elementor Switch All Toggles Open & Close Button

Elementor Switch All Toggles Open & Close Button

Element.How also offers premium tutorials! Check them here:

Table of Contents

In this tutorial will show you how to add a "toggle all" open / close button that will open or close all the Elementor toggle that are in a given section or container.

See the demo here:

Features:

  • Toggle all the toggles open or closed
  • Change the colors of the toggle all button to your liking
  • It works with sections and containers
  • It works for two or more sets of toggles in the same section / container (as seen in the demo)
  • You can have other independent sections / containers with toggle all buttons, that will control their own set of toggles.

Let's get started!

First, prepare your page with Elementor toggles

This is a premium tutorial. Purchase access to unlock the full tutorial.

Access tutorial

$9/one time Purchase access

Includes

  • Gain Access to This TutorialUnlock complete access to the current tutorial:
  • Future UpdatesYou will get access to all future updates to this tutorial.
  • Enjoy Unlimited UsageUse on as many of your own sites or your clients sites as you wish.

    Note that reselling or redistributing is not permitted.

Access everything

$299/one time Purchase All Access

Includes

  • Unlock every premium tutorial on Element.howGet access to the entire library of premium tutorials on Element.how
    Preview premium tutorials
  • Get access to the CSS course for Elementor usersAccess the complete 14 HTML chapters, 30 CSS chapters and 7 Elementor Projects.Learn more
  • Simple CSS Grid For ElementorAn Elementor Addon to Create Awesome Grid Layouts in a Single Click for Containers, Galleries and Loop Grid. Learn more
  • free extra: ShapeDividers.com Premium AccessLifetime Premium Access to ShapeDividers.comVisit ShapeDividers.com
  • 30 day money backNo questions asked money back. Not what you expected? Get a refund.
  • One-time payment of only $299No hidden fees or subscriptions.

    Sales taxes added where applicable.
  • Great supportGet help when you need it. Support includes getting things working as intended.

    Support excludes customization work.
  • Lifetime access to everything Element.howThe price reflects what is currently available on Element.how. All future updates are included, but none are promised. You pay for what is available now, and the rest is a sweet extra.

    I will say that it is definitely my intention to keep adding tutorials to Element.how.
* All prices are USD. Applicable taxes will be charged at checkout. Have a question? See the FAQ or email me.

Element.how also provides premium tutorials showing awesome advanced designs, check them out here.

Looking for something else? Search across 2737 Elements right here:

Checkout the Elementor Addon Finder directly

12 Responses

  1. HI Maxime. I have found this tutorial really useful on a number of websites. Thanks so much.

    On a page I am just building, I use toggles for FAQs and the code you provided. All FAQs are open on page load. Now, I need to link text on the same page to specific FAQs. I tried the code you provide here - https://element.how/elementor-open-specific-tab-toggle-accordion/. It works, but the toggle closes instead of remaining open. I am not a coder. Thanks for any help you can provide.

    1. Hey Steve!

      Use this code instead:

      <script>
      document.addEventListener('DOMContentLoaded', function() {
      jQuery(function($) {
      $('.toggler_all').click(function() {
      let tabContents = $('.elementor-tab-content');
      let tabTitles = $('.elementor-tab-title');
      if (!$('.toggler_all')[0].checked) {
      tabContents.slideUp();
      tabContents.removeClass('elementor-active');
      tabContents.attr("hidden", "hidden");
      setTimeout(function() {
      tabContents.removeClass('same-height');
      }, 400);
      tabTitles.removeClass('elementor-active');
      tabTitles.attr('aria-expanded', false);
      tabTitles.attr('aria-selected', false);
      tabTitles.attr('tabindex', -1);
      } else {
      tabContents.addClass('same-height');
      tabContents.slideDown();
      tabContents.addClass('elementor-active');
      tabTitles.addClass('elementor-active');
      tabTitles.attr('aria-expanded', true);
      tabTitles.attr('aria-selected', true);
      tabTitles.attr('tabindex', 0);
      }
      });
      });
      });
      </script>
      

      Cheers!

      1. Thanks, Maxime! I found a very similar solution myself.

        Cheers! Great content here.

  2. Nevermind, I figured it out. I would like to post the adjusted JS for anyone else to use, but I am getting a 403 error when trying to comment it here.

Leave a Reply