Tab ID
-
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!
The topic ‘Tab ID’ is closed to new replies.