__( 'Main Menu', 'alpha-store' ), 'top_menu' => __( 'Top Menu', 'alpha-store' ), ) ); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 300, 300, true ); add_image_size( 'alpha-store-single', 688, 325, true ); add_image_size( 'alpha-store-carousel', 270, 423, true ); add_image_size( 'alpha-store-category', 600, 600, true ); add_image_size( 'alpha-store-widget', 60, 60, true ); // Add Custom logo Support add_theme_support( 'custom-logo', array( 'height' => 100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, ) ); // Add Custom Background Support $args = array( 'default-color' => 'ffffff', ); add_theme_support( 'custom-background', $args ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'woocommerce' ); } endif; //////////////////////////////////////////////////////////////////// // Enqueue Styles (normal style.css and bootstrap.css) //////////////////////////////////////////////////////////////////// function alpha_store_theme_stylesheets() { wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array(), '3.3.4', 'all' ); wp_enqueue_style( 'alpha-store-stylesheet', get_stylesheet_uri(), array(), '1.0.2', 'all' ); // load Font Awesome css wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.4.0' ); wp_enqueue_style( 'flexslider', get_template_directory_uri() . '/css/flexslider.css', array(), '2.5.0' ); } add_action( 'wp_enqueue_scripts', 'alpha_store_theme_stylesheets' ); //////////////////////////////////////////////////////////////////// // Register Bootstrap JS with jquery //////////////////////////////////////////////////////////////////// function alpha_store_theme_js() { wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array( 'jquery' ), '3.3.4' ); wp_enqueue_script( 'alpha-store-theme-js', get_template_directory_uri() . '/js/customscript.js', array( 'jquery' ), '1.0.2'); wp_enqueue_script( 'flexslider', get_template_directory_uri() . '/js/jquery.flexslider-min.js', array( 'jquery' ), '2.5.0' ); } add_action( 'wp_enqueue_scripts', 'alpha_store_theme_js' ); //////////////////////////////////////////////////////////////////// // Register Custom Navigation Walker include custom menu widget to use walkerclass //////////////////////////////////////////////////////////////////// require_once(trailingslashit( get_template_directory() ) . 'lib/wp_bootstrap_navwalker.php'); //////////////////////////////////////////////////////////////////// // Register Widgets //////////////////////////////////////////////////////////////////// add_action( 'widgets_init', 'alpha_store_widgets_init' ); function alpha_store_widgets_init() { register_sidebar( array( 'name' => __( 'Homepage Sidebar', 'alpha-store' ), 'id' => 'alpha-store-home-sidebar', 'before_widget' => '', 'before_title' => '