jQuery(document).ready(function($) { if ($.isFunction($.fn.tabs)) { $('.custom-tabs').tabs(); } });