Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //WOOCOMMERCE FUNCTIONS
- 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', 'jamminj_wrapper_start', 10);
- add_action('woocommerce_after_main_content', 'jamminj_wrapper_end', 10);
- function jamminj_wrapper_start() {
- echo '<div id="main" class="container"><div id="page"><div id="breaks_content">';
- }
- function jamminj_wrapper_end() {
- echo '</div></div></div>';
- }
- //Remove Breadcrumbs
- remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
- //Add Product Description in Catalog/Shop Loop
- add_action('woocommerce_after_shop_loop_item_title','woocommerce_template_single_excerpt', 5);
- //Get Rid of Stupid Tabs
- //remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10);
- //remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20, 2);
- //add_action( 'woocommerce_single_product_summary', 'woocommerce_product_description_panel', 20 );
- //Remove Product Reviews
- remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
- remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30 );
- //Remove Sidebar from WooCommerce
- remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
- //Number of Products to Display on a Page
- add_filter('loop_shop_per_page', create_function('$cols', 'return 100;'));
- // Change number or products per row to 2
- add_filter('loop_shop_columns', 'loop_columns');
- global $woocommerce_loop;
- $woocommerce_loop['columns'] = 2;
- //Declare WooCommerce Support
- add_action( 'after_setup_theme', 'woocommerce_support' );
- function woocommerce_support() {
- add_theme_support( 'woocommerce' );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement