Is this php code correct to use in a Evolve child theme as a functions.php file? I got this code from the WooCommerce support website. Do I need to change it? Or will it work like this?
<?php
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);
function my_theme_wrapper_start() {
echo '<section id="main">';
}
function my_theme_wrapper_end() {
echo '</section>';
}
add_action( 'after_setup_theme', 'woocommerce_support' );
function woocommerce_support() {
add_theme_support( 'woocommerce' );
}
Hello,
Evolve plus default support woocommerce. If you want woocommerce in evolve,
You have to customize as per woocommerce guide line as you done already.
Or follow this URL:
https://docs.woocommerce.com/document/third-party-custom-theme-compatibility/