Skip to content

Instantly share code, notes, and snippets.

@tyxla
Created February 17, 2016 08:05
Show Gist options
  • Save tyxla/93c12725db270915ccb0 to your computer and use it in GitHub Desktop.
Save tyxla/93c12725db270915ccb0 to your computer and use it in GitHub Desktop.
Tabify Edit Screen + Carbon Fields compatibility - reopen first tab on load
jQuery(function($) {
$(window).on('load', function() {
var $firstTab = $('.tabify-tab:eq(0)');
if ($firstTab.length) {
$firstTab.trigger('click');
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment