-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24ff734
commit de8553c
Showing
3 changed files
with
40 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
if ( ! defined( 'ABSPATH' ) ) { | ||
exit; // Exit if accessed directly. | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* Woocommerce Specific features and functions. | ||
* | ||
* @link | ||
* | ||
* @package Carbon | ||
* @since 0.0.1 | ||
* @version 0.0.2 | ||
*/ | ||
|
||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit; // Exit if accessed directly. | ||
} | ||
|
||
add_action( 'after_setup_theme', 'carbon_setup_woocommerce' ); | ||
/** | ||
* Set up WooCommerce | ||
* | ||
* @since 0.0.2 | ||
*/ | ||
function carbon_setup_woocommerce() { | ||
if ( ! class_exists( 'WooCommerce' ) ) { | ||
return; | ||
} | ||
|
||
// Add support for WC features. | ||
add_theme_support( 'wc-product-gallery-zoom' ); | ||
add_theme_support( 'wc-product-gallery-lightbox' ); | ||
add_theme_support( 'wc-product-gallery-slider' ); | ||
|
||
// Remove default WooCommerce wrappers. | ||
//remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 ); | ||
//remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 ); | ||
remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); | ||
//add_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 50 ); | ||
} |