1000, 'gallery_thumbnail_image_width' => 100, 'single_image_width' => 1000, ) ); } add_action( 'after_setup_theme', 'alagu_woo_support' ); } // Products Per Row - Need to override "Products per row" option in "Product Catalog" customizer settings if( ! function_exists( 'alagu_woo_loop_columns' ) ) { function alagu_woo_loop_columns( $columns ) { return $columns; } add_filter( 'loop_shop_columns', 'alagu_woo_loop_columns' ); } // Post Per Page if( ! function_exists( 'alagu_woo_posts_per_page' ) ) { function alagu_woo_posts_per_page( $count ) { if( is_shop() ) { $count = alagu_get_option( 'shop-page-product-per-page', $count ); } elseif( is_product_category() ) { $count = alagu_get_option( 'dt-woo-category-archive-product-per-page' ); } elseif( is_product_tag() ) { $count = alagu_get_option( 'dt-woo-tag-archive-product-per-page' ); } return $count; } add_filter( 'loop_shop_per_page', 'alagu_woo_posts_per_page' ); } /** * ------------------------------------------------------------------------------------------------ * Main Content Wrapper * ------------------------------------------------------------------------------------------------ */ // To Update Page Wrapper Start remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 ); if( ! function_exists( 'alagu_woo_output_content_wrapper' ) ) { function alagu_woo_output_content_wrapper() { $shop_page_id = ''; $settings = array(); $page_layout = ''; $sidebar_class = ''; $show_sidebar = ''; $show_left_sidebar = ''; $container_class = ''; $widgets = array(); if( is_shop() || is_product_category() || is_product_tag() ) { $options = alagu_shop_archive_page(); $widgets = $options['widgets']; $layout = $options['page-layout']; $layout = alagu_page_layout( $layout ); extract( $layout ); } elseif( is_product() ) { global $post; $options = alagu_single_product( $post->ID, "left" ); $widgets = $options['widgets']; $layout = $options['page-layout']; $layout = alagu_page_layout( $layout ); extract( $layout ); } $header_class = alagu_get_option( 'breadcrumb-position' ); echo ''; echo '