Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Rimozione 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);
- //Ripristino WooCommerce Wrappers nel tema BootsTheme
- add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10);
- add_action('woocommerce_after_main_content', 'my_theme_wrapper_end', 10);
- //Creazione pagina WooCommerce
- function my_theme_wrapper_start() {
- echo '<div class="row"><div class="col-md-12"><section id="main" class="woocommerce">';
- }
- function my_theme_wrapper_end() {
- echo '</section></div></div>';
- }
- /* WooCommerce - Dichiarazione compatibilità del tema BootsTheme */
- add_action( 'after_setup_theme', 'woocommerce_support' );
- function woocommerce_support() {
- add_theme_support( 'woocommerce' );
- add_theme_support( 'wc-product-gallery-zoom' );
- add_theme_support( 'wc-product-gallery-lightbox' );
- add_theme_support( 'wc-product-gallery-slider' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement