'; } } add_action( 'wp_head', 'the100_pingback_header' ); function the100_parent_category_lists(){ $category = get_categories( array( 'hide_empty' => 1, 'orderby' => 'name', 'parent' => 0, )); $cat_list = array(); $cat_list[0]= __('Select Parent category','the100'); foreach ($category as $cat) { $cat_list[$cat->term_id] = $cat->name; } return $cat_list; } //adding custom scripts and styles in header for favicon and other function the100_header_scripts(){ $header_bg_v = get_header_image(); echo "\n"; } add_action('wp_head','the100_header_scripts'); if ( class_exists( 'woocommerce' ) ){ add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); function the100_wrapper_start() { echo '
'; } add_action('woocommerce_before_main_content', 'the100_wrapper_start', 10); function the100_wrapper_end() { echo '
'; $the100_sidebar=get_theme_mod('the100_woocommerce_sidebar_layout','right-sidebar'); if($the100_sidebar=='left-sidebar'){ get_sidebar('left'); }elseif($the100_sidebar=='right-sidebar'){ get_sidebar('right'); }else{ remove_action('woocommerce_sidebar','woocommerce_get_sidebar'); } echo '
'; } add_action('woocommerce_after_main_content','the100_wrapper_end',9); }