Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 20th, 2013  |  syntax: None  |  size: 1.90 KB  |  views: 74  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. //WOOCOMMERCE FUNCTIONS
  4.  
  5. remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
  6. remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
  7.  
  8. add_action('woocommerce_before_main_content', 'jamminj_wrapper_start', 10);
  9. add_action('woocommerce_after_main_content', 'jamminj_wrapper_end', 10);
  10.  
  11. function jamminj_wrapper_start() {
  12.   echo '<div id="main" class="container"><div id="page"><div id="breaks_content">';
  13. }
  14.  
  15. function jamminj_wrapper_end() {
  16.   echo '</div></div></div>';
  17. }
  18.  
  19. //Remove Breadcrumbs
  20. remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
  21.  
  22. //Add Product Description in Catalog/Shop Loop
  23. add_action('woocommerce_after_shop_loop_item_title','woocommerce_template_single_excerpt', 5);
  24.  
  25. //Get Rid of Stupid Tabs
  26. //remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10);
  27. //remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20, 2);
  28. //add_action( 'woocommerce_single_product_summary', 'woocommerce_product_description_panel', 20 );
  29.  
  30. //Remove Product Reviews
  31. remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
  32. remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30 );
  33.  
  34. //Remove Sidebar from WooCommerce
  35. remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
  36.  
  37. //Number of Products to Display on a Page
  38. add_filter('loop_shop_per_page', create_function('$cols', 'return 100;'));
  39.  
  40. // Change number or products per row to 2
  41. add_filter('loop_shop_columns', 'loop_columns');
  42. global $woocommerce_loop;
  43. $woocommerce_loop['columns'] = 2;
  44.  
  45. //Declare WooCommerce Support
  46. add_action( 'after_setup_theme', 'woocommerce_support' );
  47. function woocommerce_support() {
  48.     add_theme_support( 'woocommerce' );
  49. }
  50.  
  51.  
  52.  
  53. ?>
clone this paste RAW Paste Data