Hi Enfold people,
I am building a new sub page which includes according toggles. Some of the toggles include content, while other do not. I want to deactivate the possibility to expand the toggle for the ones which do not have any content (only a heading).
Find the link to the preliminary page in private content. For example, the first toggle has no content. Therefore the user should not be able to expand it. The second toggle as content. Therefore, the user can expand it, as is per default.
How can I achieve this?
Best regards, peter
Hey,
Thanks for contacting us and sorry for the late reply!
Please edit your Accordion items that you would like to disable and give them custom ID (“disabled-acc” in example below – https://imgur.com/a/LyyGhIh
Then add following code to Quick CSS field in Enfold theme options > General Styling tab
.toggler[data-fake-id="#disabled-acc"] {
pointer-events: none !important;
}
Best regards,
Yigit
Hi Yigit,
thank you for the clear instruction. This achieved the result I wanted.
best regards, Peter
Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan Shannon
yes, you can close the topic,
best regards, peter
ooh and you should add that to the accordian documentation
Hi Peter,
I have updated accordion documentation – https://kriesi.at/documentation/enfold/accordion/#disable-certain-accordion-toggles. Thanks for your suggestion :)
Let us know if you have any other questions or issues and enjoy the rest of your day!
Best regards,
Yigit