Skip to content

Instantly share code, notes, and snippets.

@simonlk
Created November 4, 2012 03:58
Show Gist options
  • Save simonlk/4010105 to your computer and use it in GitHub Desktop.
Save simonlk/4010105 to your computer and use it in GitHub Desktop.
// First remove default wrapper
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
// Then add new wrappers
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>';
}
@usernamethatsnottaken
Copy link

Thank you very much, even after 3 years it's working perfectly well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment