Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@robin-scott
Created September 3, 2018 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robin-scott/5f109c9dd6777374f315280d732653a1 to your computer and use it in GitHub Desktop.
Save robin-scott/5f109c9dd6777374f315280d732653a1 to your computer and use it in GitHub Desktop.
Declare WooCommerce Support in theme (simple)
// 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