Created
September 3, 2018 10:43
-
-
Save robin-scott/5f109c9dd6777374f315280d732653a1 to your computer and use it in GitHub Desktop.
Declare WooCommerce Support in theme (simple)
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
// Below declares woocommerce support when added to a theme or child theme functions.php - from the official WooCommerce Github (August 2018) | |
// Posted by Robin Scott of Silicon Dales here https://silicondales.com/tutorials/woocommerce/declare-woocommerce-support-theme/ to benefit the Open Source community. Free to share and distribute for any purpose. | |
function mytheme_add_woocommerce_support() { | |
add_theme_support( 'woocommerce' ); | |
} | |
add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment