'ffffff' ) ) ); add_theme_support( 'custom-header', array( 'width' => 1080, 'height' => 190, 'flex-height' => true, 'flex-width' => true, ) ); register_nav_menus( array( 'top' => __( 'Main Menu', 'cgs-fashion-trend' ) ) ); // logo $args = array(); $lpos = esc_html(get_theme_mod( 'display_logo_and_title' )); if ( false === $lpos || 'image' == $lpos ) { $args['header-text'] = array( 'blog-name' ); } add_theme_support( 'custom-logo', $args ); } endif; add_action( 'after_setup_theme', 'cgs_fashion_trend_setup' ); /* ========================================================================== * Load scripts and styles * ========================================================================== */ if ( ! function_exists( 'cgs_fashion_trend_enqueue_style_and_script' ) ) : function cgs_fashion_trend_enqueue_style_and_script() { global $post, $wp_query; // STYLES wp_enqueue_style( 'cgs-fashion-trend-fonts', '//fonts.googleapis.com/css?family=Open+Sans:400,600,700,800|Playfair+Display:400,700,900|Poppins:400,500,600,700', array(), true ); wp_enqueue_style( 'bootstrap', get_template_directory_uri().'/css/bootstrap.min.css', array(), true ); wp_enqueue_style( 'cgs-fashion-trend-style', get_stylesheet_uri(), array(), true ); // SCRIPTS wp_enqueue_script( 'html5shiv', get_template_directory_uri() . '/js/html5shiv.min.js', array(), '3.7.3', true ); wp_script_add_data( 'html5shiv', 'conditional', 'lt IE 9' ); wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.bundle.min.js', array( 'jquery' ), true, true ); if(is_singular()){ if(comments_open() && get_option('thread_comments')){ wp_enqueue_script( 'comment-reply', false, true, true ); } } } endif; add_action( 'wp_enqueue_scripts', 'cgs_fashion_trend_enqueue_style_and_script' ); /* =========================================================================== */ add_action( 'widgets_init', 'cgs_fashion_trend_widgets_init' ); function cgs_fashion_trend_widgets_init() { /* translators: %s: search term */ register_sidebar( array( 'name' => __('Primary Sidebar', 'cgs-fashion-trend'), 'id' => 'sidebar-1', 'before_widget' => '
', 'before_title' => '