Created
January 30, 2018 23:50
-
-
Save WPprodigy/35b9e401f5122fdfa73ec8afe30e015c to your computer and use it in GitHub Desktop.
Example of adding WooCommerce theme support for templates.
This file contains hidden or 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
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>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot!