jQuery( document ).ready( function( $ ) { // // Bootstrap tabbed content requires event handling. // @link http://getbootstrap.com/javascript/#tabs // var els = $( '.woocommerce-tabs > ul.nav.nav-tabs a' ); if ( els.length > 0 ) { els.click( function( e ) { e.preventDefault(); $( this ).tab( 'show' ); }); } els = $( '.woocommerce-tabs > ul.nav.nav-tabs a:first' ); if ( els.length > 0 ) { els.tab( 'show' ); } // // WP hardcodes pieces of the comment form without PHP ability to change through something // like an arglist. So, alter specific elements to make display match everything else. // els = $( '.woocommerce-tabs .comment-reply-title' ); if ( els.length > 0 ) { els.replaceWith( function() { return '

' + $( this ).html() + '

'; }); } els = $( '.woocommerce-tabs #reviews #submit' ); if ( els.length > 0 ) { els.replaceWith( function() { return ''; }); } // // WC comes with a number of widgets - this section adds the proper classes // after the fact since there are no apparent hooks available. // els = $( '.woocommerce .widget.widget_price_filter .price_slider_wrapper button[type="submit"]' ); if ( els.length > 0 ) { els.removeClass( 'button' ); els.addClass( 'btn btn-default' ); } els = $( '.woocommerce .widget.widget_product_categories li.current-cat' ); if ( els.length > 0 ) { els.children( 'a' ).addClass( 'list-group-item-info' ); } els = $( '.woocommerce .widget.widget_product_categories ul > li > a' ); if ( els.length > 0 ) { els.unwrap(); } els = $( '.woocommerce .widget.widget_product_categories ul' ); if ( els.length > 0 ) { els.addClass( 'list-group' ) } els = $( '.woocommerce .widget.widget_product_categories ul a' ); if ( els.length > 0 ) { els.addClass( 'list-group-item' ); } });