diff --git a/functions.php b/functions.php index 947daaaa..210487eb 100644 --- a/functions.php +++ b/functions.php @@ -582,7 +582,7 @@ function wp_bootstrap_theme_js(){ get_template_directory_uri() . '/bower_components/modernizer/modernizr.js', array('jquery'), '1.2' ); - + wp_enqueue_script( 'bootstrap' ); wp_enqueue_script( 'wpbs-js' ); wp_enqueue_script( 'modernizr' ); @@ -707,4 +707,24 @@ function wp_bootstrap_filter_ptags_on_images( $content ){ } add_filter( 'the_content', 'wp_bootstrap_filter_ptags_on_images' ); + +//------------------------------------------------------------------------ +// the following code adds suppport for woocomerce integeration +remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); +remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); + +add_action('woocommerce_before_main_content', 'wp_bootstrap_wrapper_start', 10); +add_action('woocommerce_after_main_content', 'wp_bootstrap_wrapper_end', 10); + +function wp_bootstrap_wrapper_start() { + echo '
'; +} + +function wp_bootstrap_wrapper_end() { + echo '
'; +} + +add_theme_support( 'woocommerce' ); +// ---------------------------------------------------------------------- + ?>