'ffffff', 'default-image' => '', ) ) ); } endif; add_action( 'after_setup_theme', 'abisteel_setup' ); function abisteel_content_width() { $GLOBALS['content_width'] = apply_filters( 'abisteel_content_width', 640 ); } add_action( 'after_setup_theme', 'abisteel_content_width', 0 ); function abisteel_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Header', 'abisteel' ), 'id' => 'sidebar-5', 'description' => esc_html__( 'Add widgets here.', 'abisteel' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer 1', 'abisteel' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here.', 'abisteel' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer 2', 'abisteel' ), 'id' => 'sidebar-2', 'description' => esc_html__( 'Add widgets here.', 'abisteel' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer 3', 'abisteel' ), 'id' => 'sidebar-3', 'description' => esc_html__( 'Add widgets here.', 'abisteel' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer 4', 'abisteel' ), 'id' => 'sidebar-4', 'description' => esc_html__( 'Add widgets here.', 'abisteel' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'abisteel_widgets_init' ); function abisteel_scripts() { wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array( ), false, 'all' ); wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap-theme.css', array( ), false, 'all' ); wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.css', array( ), false, 'all' ); wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array( ), false, 'all' ); wp_enqueue_script('jquery'); wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array( ), false, 'all' ); wp_enqueue_style( 'abisteel-style', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'abisteel_scripts' ); require get_template_directory() . '/inc/template-tags.php'; add_action( 'after_setup_theme', 'abisteel_woocommerce_support' ); function abisteel_woocommerce_support() { add_theme_support( 'woocommerce' ); } function woocommerce_output_related_products() { $args = array('posts_per_page' => 4, 'columns' => 4,'orderby' => 'rand' ); woocommerce_related_products( apply_filters( 'woocommerce_output_related_products_args', $args ) );} add_filter('loop_shop_columns', 'loop_columns'); if (!function_exists('loop_columns')) { function loop_columns() { return 4; // 4 products per row }} add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 12;' ), 20 ); add_filter('add_to_cart_fragments', 'abisteel_fragment'); function abisteel_fragment( $fragments ) { global $woocommerce; ob_start(); ?> cart->get_cart_total(); ?>