Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Unhooking the woocommerce wrappers
- */
- remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
- remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
- /**
- * Using custom hooks for woocommerce
- */
- 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>';
- }
- /**
- * Declaring woocommerce support
- */
- add_theme_support( 'woocommerce' );
- /**
- * Adding woocommerce product gallery features
- */
- add_action( 'after_setup_theme', 'maxxshop_gallery_setup' );
- function maxxshop_gallery_setup() {
- add_theme_support( 'wc-product-gallery-slider' );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement