• Artem P.

    (@madeinua)


    Hello,

    Can you add additional attribute “id” to the shortcode [tab]. I like your idea to generate unique tab id but in my case I would like to have persistent tabs – so I have to display visible tab ID in the URL address as hash (http://some.page#tab-name). In this case it would be much better to define tab ID manually. Can you please add additional shortcode attribute “id” and change this line (in bs_tab() and bs_tabs()):

    From

    $id = 'custom-tab-'. $GLOBALS['tabs_count'] . '-'. md5( $atts['title'] );

    To

    $id = $id === false ? 'custom-tab-'. $GLOBALS['tabs_count'] . '-'. md5( $atts['title'] ) : $id;

    Very thanks!

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

Viewing 1 replies (of 1 total)
  • Plugin Author MWDelaney

    (@foolsrun)

    This is a good idea! I’ll look into adding it into the next release.

Viewing 1 replies (of 1 total)

The topic ‘Tab ID’ is closed to new replies.