__( 'Main Menu', 'maxstore' ), ) ); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 300, 300, true ); add_image_size( 'maxstore-single', 848, 400, true ); add_image_size( 'maxstore-home-top', 300, 300, true ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'woocommerce' ); if ( get_theme_mod( 'woo_gallery_zoom', 0 ) == 1 ) { add_theme_support( 'wc-product-gallery-zoom' ); } if ( get_theme_mod( 'woo_gallery_lightbox', 1 ) == 1 ) { add_theme_support( 'wc-product-gallery-lightbox' ); } if ( get_theme_mod( 'woo_gallery_slider', 0 ) == 1 ) { add_theme_support( 'wc-product-gallery-slider' ); } } endif; //////////////////////////////////////////////////////////////////// // Enqueue Styles (normal style.css and bootstrap.css) //////////////////////////////////////////////////////////////////// function maxstore_theme_stylesheets() { wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array(), '3.3.4', 'all' ); wp_enqueue_style( 'maxstore-stylesheet', get_stylesheet_uri(), array(), '1.4.0', 'all' ); // load Font Awesome css wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.7' ); } add_action( 'wp_enqueue_scripts', 'maxstore_theme_stylesheets' ); //////////////////////////////////////////////////////////////////// // Register Bootstrap JS with jquery //////////////////////////////////////////////////////////////////// function maxstore_theme_js() { wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array( 'jquery' ), '3.3.4' ); wp_enqueue_script( 'maxstore-theme-js', get_template_directory_uri() . '/js/customscript.js', array( 'jquery' ), '1.4.0' ); } add_action( 'wp_enqueue_scripts', 'maxstore_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', 'maxstore_widgets_init' ); function maxstore_widgets_init() { register_sidebar( array( 'name' => __( 'Right Sidebar', 'maxstore' ), 'id' => 'maxstore-right-sidebar', 'before_widget' => '', 'before_title' => '