Question

Toggle Widget - Expand / Contract all items simultaneously

  • 13 January 2022
  • 2 replies
  • 8 views

Hi, is there a way to include a button or link on the page so the user can expand / contract ALL of the items within an Elementor toggle widget? If not natively, then are you aware of any third-party solution? Maybe a script or alternative toggle widget?


2 replies

Userlevel 6
Badge +3

yes on click of a link or button you can hide or collaspe all elements.

 

// on click of any element you can use this function  

$('.target').slideUp();

//

Thanks James, this looks straightforward, but I don’t know how to actually implement this code on the page. Can you give me some direction?

Reply