Skip to content

Instantly share code, notes, and snippets.

@WPprodigy
Created January 30, 2018 23:50
Show Gist options
  • Save WPprodigy/35b9e401f5122fdfa73ec8afe30e015c to your computer and use it in GitHub Desktop.
Save WPprodigy/35b9e401f5122fdfa73ec8afe30e015c to your computer and use it in GitHub Desktop.
Example of adding WooCommerce theme support for templates.
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', 'custom_themewrapper_start', 10);
add_action('woocommerce_after_main_content', 'custom_themewrapper_end', 10);
function custom_themewrapper_start() {
echo '<div class="main"><div class="row"><div class="large-12 medium-12 small-12 columns content">';
}
function custom_themewrapper_end() {
echo '</div></div></div>';
}
@kondorwithak
Copy link

Thanks a lot!

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