Divi Show / Hide Button Module

Divi Show / Hide Button is a Divi module from Divi Booster which lets site visitors control the visibility of page elements via a button. Divi Show / Hide Button module can:

  • Hide, reveal and toggle sections, rows and modules
  • Group buttons to form tabs
  • Be styled like a normal Divi button

Lifetime license. Nothing more to pay.
Automatic updates. 90 day money back guarantee.

Adds a New Divi Builder Module

This handy plugin adds a new "Show / Hide Button" module to the Divi Builder. It behaves a similarly to the built-in button module, but instead of linking to another page, it lets you control the visibility of elements on the current page.

With it you can easily bring your pages to life with a range of dynamic effects.

Reveal hidden content at the click of a button. Let users hide the elements they no longer need to see. Or let them repeated hide and reveal (i.e. toggle) elements as they please.

You can even create more complex effects like button-controlled tabs, swapped elements, or multi-step forms. You can even hide the button itself once clicked.

All with one simple module.

Reveal Hidden Content

Keep your pages clean and concise by hiding content initially and letting your users choose if / when to view it.  Simply add the CSS id or CSS class of your hidden element at:

Button Settings > When Button Clicked… > Show these Elements

Then when the button is clicked, the elements will be revealed. 

If you need to, you can add multiple CSS ids, classes or even complex CSS selectors, separated by commas.

Here's the hidden content!

Hide Initially Visible Content

Let your readers hide the content they're finished with, so they can focus on the rest of the page.  Simply add the CSS id or CSS class of the elements to hide at:

Button Settings > When Button Clicked… > Hide these Elements

Then when the button is clicked, the elements will be hidden. 

Again, if you need to, you can add multiple CSS ids, classes or even complex CSS selectors, separated by commas.

You can hide this by clicking the button above.

Repeatedly Toggle Content

Let your users choose whether or not to view content.  Simply add the CSS id or CSS class of the elements to toggle at:

Button Settings > When Button Clicked… > Toggle these Elements

Then when the button is clicked, hidden elements will be revealed and displayed elements will be hidden. Repeated clicks will continue to toggle the elements. 

Once again, if you need to, you can add multiple CSS ids, classes or even complex CSS selectors, separated by commas.

You can toggle this by clicking the button above.

Testimonials

Wyre Web Design

John Boase of Wyre Web Design

 

"I recently downloaded and installed the very reasonably priced Divi Show / Hide Button Module from Divi Booster (whose other plugin, Divi Booster I have used many times over many years) and it makes adding a Show / Hide Button to Divi exceptionally easy without having to know or use any coding…a big bonus for me!

It provides you with the ability to hide or show and / or toggle any section or number of sections and / or any row or number of rows and / or any module or number of modules by just adding whatever CSS ID you choose to the relevant section, row or module and they even show you how to do this on their website. It is so easy yet so powerful and you can have multiple buttons all doing different things on the same page with different button text…amazing!

I did require another feature though and that was to have the button show different text when clicked and open (i.e. button text is 'Read More' when closed but changes to ‘Close' when clicked / opened then changes back to 'Read More' when clicked / closed again so I contacted the developer and Dan responded quickly and said he would add that feature in the next update, which he did 2 days later! Brilliant service.

I highly recommend Divi Booster to anyone who wants 'easy to use' yet essential and productive cost effective plugins for Divi."

Divi Show / Hide Button Module

Automatic updates. No recurring fees.
90 day money back guarantee.

Got a Question?

41 Comments

  1. Hi, I am creating a site for a client who wants a visitor to click on an image to reveal hidden content. I have all of the dynamics correct when using the button as the trigger, but cannot figure out how to create the button as the 'image' – I have looked at other comments about this but am having trouble making this happen. The page I am working on is: https://mybegenuine.com/clients/reserve2/sweet-home-mine-gallery/ and I think it would look more elegant to have just the images show/hide (using a toggle effect) the content. Can you point me in the right direction? I love this plugin and have purchased the lifetime version.

    Reply
  2. Hi Dan! I just installed the plugin and the issues I am having is that the button seems to reload the site, so with toggle on the site reloads and auto hides the content I now want to have show. I have tried a few things to no avail but I am trying to have it hide on load (which works) and then toggle on and off with a button. Is there some setting I missed with the button? Any help would be greatly appreciated!

    Reply
    • Really need some help here. I installed the plugin and the issues I am having is that the button seems to reload the site, so with toggle on the site reloads and auto hides the content I now want to have shown. I have tried a few things to no avail but I am trying to have it hide on load (which works) and then toggle on and off with a button. Is there some setting I missed with the button? Any help would be greatly appreciated!

      Reply
      • Hi Brandon, sorry I'm just responding to this now. You can get this behavior if something is blocking the module's JavaScript code from running (e.g. a JavaScript error in the page). Alternatively, if you've set the module's "Button Link URL" field, and have used the full URL of the page rather than just the hash component of the URL (e.g. "#some-target"), it would similarly trigger a page reload. If you are able to provide a link to the page you're working on, I'd be happy to take a closer look and hopefully identify the issue for you. Thanks!

        Reply
    • Hi again,

      I checked the console and there are no issues detected, so as far as I can tell there is not a conflict. I was leaving the "Button Link URL" blank in my first tests because it didnt seem required for the script to run. When the page kept reloading I used my CSSID of "#test22" as the target and while the page no longer reloads, the section does not reveal, either. I feel like I am missing something simple but cannot figure this out. Again the page is here: https://solvingwork.com/pricing/

      Reply
      • Hi Brandon, thanks for providing the detailed information and links. I've checked the button setup, and it doesn't seem to be the cause of the issue. Instead, it looks like something is interfering with Divi's jQuery compatibility mechanism.

        To give you a bit more context, when the "Defer jQuery And jQuery Migrate" option is enabled at "Divi > Theme Options > General > Performance", Divi moves the jQuery library script from the <head> of the page to the end of the <body>. This movement can cause inline scripts like the Divi Show/Hide Button script to fail as they would be trying to use jQuery before it’s loaded.

        Divi offers a solution with the "Enqueue jQuery Compatibility Script" option. When enabled (and it is by default), Divi adds two extra scripts at the start and the end of the page, allowing inline scripts to be registered and executed once jQuery is fully available.

        In this case, it appears that something is blocking Divi from adding the second compatibility script to the end of the page. This means the inline scripts are being registered but aren’t running since the execution script is missing. Consequently, scripts like the one for Divi Show/Hide Button (and potentially others) aren't being executed correctly.

        Given that Divi doesn't provide an option to enable only the first script, it seems that something else on the site might be interfering. My first suspicion is Jetpack. It has its own jQuery deferral mechanism that could possibly conflict with Divi's. If possible, could you try temporarily disabling it to see if the issue persists? I also noticed that Batcache is active on your site. While less likely to be the culprit, disabling it briefly for a check won't hurt.

        If neither of those actions resolves the issue, try temporarily disabling "Defer jQuery And jQuery Migrate" in the Divi Theme options (and if Jetpack is still active, disable its jQuery deferral option). This change should allow jQuery to load earlier and should confirm if the issue does indeed lie within how or when jQuery is loading.

        If you can give these steps a shot and let me know how it goes, we can take it from there. Thanks!

        Reply

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.