How to set an "id" to a toggle element in an FAQ

Support Forums for LiveMesh Themes & Plugins Forums Fusion Theme Support How to set an "id" to a toggle element in an FAQ

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20815
    kwenzi
    Member

    I’m using the toggle element to create the FAQ for my site.

    I need to be able to link to different questions using an url fragment such as https://mysite/faq/#question1 so we can refer users to a specific answer instead to the whole FAQ.

    The thing is that if I put a

    inside the toggle element, the url doesn’t get to the target fragment since it is in a display: none element. And if I put the div outside the toggle, the toggle group behaviour is broken (many toggles can be opened at the time).

    I’m using a simple css rule to display the content :

    div:target .toggle-content {
    display: block;
    }

    Could you make it possible to set an id attribute for a toggle element?

    Thanks in advance.

    #20918
    Raghavendra
    Moderator

    Are you using the toggle shortcode or the SiteOrigin page builder widget that came with the latest version of the theme. Pls do let me know so that I can provide the appropriate files which take care of ids for toggle. Will ensure the changes go into next update.

    #20978
    kwenzi
    Member

    Thanks, I’m using the toggle shortcode.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Fusion Theme Support’ is closed to new topics and replies.