WebSite X5Help Center

 
Anna-Maria Andersson
Anna-Maria Andersson
User

How to make an expand and collapse function?  en

Author: Anna-Maria Andersson
Visited 2528, Followers 1, Shared 0  

I would like the user of my website to be able to unfold text sections on a given page by clicking an 'Expand/collapse' button. Is such a function available in the Website X5 Professional 11 version?

Posted on the
2 ANSWERS
Paul M.
Paul M.
Moderator

Hello Anna-Maria,

Professional 11 doesn't include this functionality as a native feature, however it is possible to add it without too much difficulty using the options within WebSite X5 which allow you to insert custom code.

The official jQuery documentation is here:

https://jqueryui.com/accordion/

And here is a nice tutorial which should answer most questions about how to go about this:

http://inspirationalpixels.com/tutorials/creating-an-accordion-with-html-css-jquery

Kind regards,

Paul

Read more
Posted on the from Paul M.
Jamie B.
Jamie B.
User

Hi

you can also check x5tuts we have some accordion tutorials on there aswell

Regards

jamie

Read more
Posted on the from Jamie B.