Collapsable sections

Hi!
Yes this is possible with custom code

You will need to change the values with “#…” to the ID of the blocks you want to collapse
where there is a “click(function()…” = the block that you want to click on to make everything collapse.

See this thread for further explanations: Expand and collapse a block when another block in the page is clicked on

<script>
    const interval = setInterval(function () {
        if (typeof($) == "function") {
            $("#aws1").hide();
            $("#aws2").hide();
            $("#showaws").click(function () {
               $("#aws1").toggle("slow");
               $("#aws2").toggle("slow");
            });
            $("#reviewform").hide();
            $("#showreview").click(function () {
               $("#reviewform").toggle("slow");
            });
            clearInterval(interval);
        }
    }, 100)
</script>
2 Likes