Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1285545

    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

    #1287161

    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

    #1289998

    Hi Yigit,

    thank you for the clear instruction. This achieved the result I wanted.

    best regards, Peter

    #1290016

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1290186

    yes, you can close the topic,

    best regards, peter

    #1290187

    ooh and you should add that to the accordian documentation

    #1290366

    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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Disable expand for a specific accordion toggle’ is closed to new replies.