Select Page

This code by Divi Notes worked perfectly. Be mindful that the BUTTON is given a CSS Class and the SECTION, ROW, or MODULE is given a CSS ID — only one per page can be used. I had accidentally assigned both a Class at first and it didn't work, and then I realized my mistake.

You can see it in action in the comments section of any of my posts on I turned the Comments into a dropdown.


<style type="text/css">
.rv_button.closed:after {content:"";}


<script type="text/javascript">
 jQuery(document).ready(function() {
// Hide the div
jQuery('.rv_button').toggleClass('opened closed');

BUTTON: Give it a CSS Class of “rv_button closed” (with the space and without the quotes).

SECTION, ROW, or MODLE: Give it a CSS ID of “reveal