Title: Tab ID
Last modified: August 24, 2016

---

# Tab ID

 *  [Artem P.](https://wordpress.org/support/users/madeinua/)
 * (@madeinua)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/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](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/](https://wordpress.org/plugins/bootstrap-3-shortcodes/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * (@foolsrun)
 * [11 years ago](https://wordpress.org/support/topic/tab-id/#post-6017669)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/bootstrap-3-shortcodes_7f6b9f.svg)
 * [Bootstrap Shortcodes for WordPress](https://wordpress.org/plugins/bootstrap-3-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bootstrap-3-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bootstrap-3-shortcodes/reviews/)

## Tags

 * [tab](https://wordpress.org/support/topic-tag/tab/)

 * 1 reply
 * 2 participants
 * Last reply from: [MWDelaney](https://wordpress.org/support/users/foolsrun/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/tab-id/#post-6017669)
 * Status: not resolved