• sixtyseven

    (@sixtyseven)


    Hi,

    first of all: Thank you for this nice plugin, makes inserting bootstrap-stuff a snap. However, I probably found an enhancement: Could we please get Ids for the collapses? The reason behind it: I’d like to open a specific collapse via url:

    // Opening accordion based on URL
    var url = document.location.toString();
    if ( url.match('#') ) {
        $('#'+url.split('#')[1]).addClass('in');
    }

    Think about a FAQ Section or smilar. This would make things a bit easier.

    Thanks again for your effort and Greetings from Germany

    https://wordpress.org/plugins/bootstrap-3-shortcodes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MWDelaney

    (@foolsrun)

    Hi, sixtyseven,
    We actually had a discussion about this kind of feature as relates to tabs, not collapses, on GitHub here:
    https://github.com/filipstefansson/bootstrap-3-shortcodes/pull/128

    Basically adding IDs is somewhat outside the scope of this plugin’s goals, but there’s no reason we couldn’t add a hook for additional functionality like we did with tabs. I’ll look into it.

    Thread Starter sixtyseven

    (@sixtyseven)

    Thanks for considering that, can’t wait to see the next version 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘id for the bs_collapse shortcode’ is closed to new replies.