Skip to content

Commit

Permalink
Revert "Revert "Basic WooCommere support""
Browse files Browse the repository at this point in the history
This reverts commit fe11a69.
  • Loading branch information
Misplon committed Nov 27, 2018
1 parent fe11a69 commit 664f7f4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,3 +487,32 @@ function origami_wp_header(){

}
add_action('wp_head', 'origami_wp_header');

function origami_woocommerce_setup() {

/**
* Add support for WooCommerce.
* @link https://docs.woocommerce.com/document/declare-woocommerce-support-in-third-party-theme/
*/
add_theme_support( 'woocommerce' );

/**
* Add support for WooCommerce galleries.
* @link https://woocommerce.wordpress.com/2017/02/28/adding-support-for-woocommerce-2-7s-new-gallery-feature-to-your-theme/
*/
add_theme_support( 'wc-product-gallery-slider' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-zoom' );

}
add_action( 'after_setup_theme', 'origami_woocommerce_setup' );

/**
* Enqueue WooCommerce scripts and styles.
*/
function origami_woocommerce_scripts() {

wp_enqueue_style( 'origami-woocommerce-style', get_template_directory_uri() . '/woocommerce.css', array(), SITEORIGIN_THEME_VERSION );

}
add_action( 'wp_enqueue_scripts', 'origami_woocommerce_scripts' );
2 changes: 2 additions & 0 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 664f7f4

Please sign in to comment.