$(document).ready(function() {

	// Remove defaults from ancient WordPress core template parts.
	// See functions/includes.php for more information.
	$('#page > hr').unwrap().remove();
	$('#header, #sidebar, #footer').remove();
	
	// Adding Bootstrap classes to the Comments stuff
	$(".commentlist li").addClass("panel panel-default");
	$(".comment-reply-link").addClass("btn btn-default");

  	// HOVERNAV - navbar dropdown on hover.
	// Delete this segment if you don't want it, and delete the corresponding CSS in bst.css
	// Uses jQuery Media Query - see http://www.sitepoint.com/javascript-media-queries/
	var mq = window.matchMedia('(min-width: 768px)');
	if (mq.matches) {
		$('ul.navbar-nav > li').addClass('hovernav');
		// Restore "clickable parent links" in navbar
		$('.hovernav a').click(function () {
			window.location = this.href;
		});
	} else {
		$('ul.navbar-nav > li').removeClass('hovernav');
	};
  	// The addClass/removeClass also needs to be triggered on page resize <=> 768px
	function WidthChange(mq) {
		if (mq.matches) {
			$('ul.navbar-nav > li').addClass('hovernav');
		} else {
			$('ul.navbar-nav > li').removeClass('hovernav');
		}
	};
	if (matchMedia) {
		var mq = window.matchMedia('(min-width: 768px)');
		mq.addListener(WidthChange);
		WidthChange(mq);
	}

	//MEGANAV - allows GRAND-CHILD links to be displayed in a mega-menu on screens larger than phones.
	// Delete this segment if you don't want it, and delete the corresponding CSS in bst.css
	$('.navbar').addClass('meganav');
	$('.meganav .dropdown-menu .dropdown-menu').parent().addClass('has-children').parents('li').addClass('dropdown mega-menu');

	// Forms
	$('select, input[type=text], input[type=email], input[type=password], textarea').addClass('form-control');
	$('input[type=submit]').addClass('btn btn-primary');

  	// WOOCOMMERCE restyling
	// Delete this segment if you don't want it, and delete the corresponding CSS in bst.css
	$('div.woocommerce').wrapInner('<article></article>');
	$('.woocommerce-pagination ul').css({"border": 0}).removeClass().addClass('pagination pagination-lg');
	$('.woocommerce-pagination li').css({border: 0});
	$('.woocommerce-pagination .next').text('»');
	$('.woocommerce-pagination .prev').text('«');
	$('.woocommerce-pagination .current').removeClass().addClass('active').css({background: "#e7e7e7"});
	$('.woocommerce-message a.button.wc-forward').removeClass().addClass('btn btn-success').append('&nbsp; <i class="glyphicon glyphicon-arrow-right"></i>').css({display: "block", float: "right", marginTop: -7});
	$('.woocommerce a.button.wc-backward').removeClass().addClass('btn btn-info').prepend('<i class="glyphicon glyphicon-arrow-left"></i> &nbsp;').css({display: "inline-block"});
	$('.woocommerce-message').removeClass().addClass('alert alert-success');
	$('.woocommerce-info').removeClass().addClass('alert alert-warning');
	$('.woocommerce .cart button').removeClass().addClass('btn btn-primary').css({height: 28, paddingTop: 3});
	$('.woocommerce .shipping-calculator-button').addClass('btn btn-primary btn-block').css({height: 34});
	$('.shipping-calculator-form .button').removeClass().addClass('btn btn-success btn-block');
	$('.woocommerce input[type=submit]').removeClass().addClass('btn btn-primary').css({height: 34});
	$('.woocommerce input[name=proceed]').removeClass().addClass('btn btn-success');
});

@@ -27,205 +27,8 @@
 () %7B
-%0A%0A%09// Remove defaults from ancient WordPress core template parts.%0A%09// See functions/includes.php for more information.%0A%09$('#page %3E hr').unwrap().remove();%0A%09$('#header, #sidebar, #footer').remove();
 %0A%09%0A%09
@@ -528,133 +528,8 @@
 ');%0A
-%09%09// Restore %22clickable parent links%22 in navbar%0A%09%09$('.hovernav a').click(function () %7B%0A%09%09%09window.location = this.href;%0A%09%09%7D);%0A
 %09%7D e
@@ -961,18 +961,139 @@
 ge(mq);%0A
-
 %09%7D
+%0A%09// Restore %22clickable parent links%22 in navbar%0A%09$('.hovernav a').click(function () %7B%0A%09%09window.location = this.href;%0A%09%7D);
 %0A%0A%09//MEG

Update bst-plus.js