tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); add_theme_support( 'post-thumbnails' ); register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'newsgem' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /* * WooCommerce support. */ add_editor_style( array( 'css/editor-style.css', newsgem_fonts_url() ) ); add_theme_support( 'woocommerce' ); add_theme_support('newsgem-scripts',array('comment-reply' )); /** * Add theme Support custom logo * @since WP 4.5 * @sin 1.2.1 */ add_theme_support( 'custom-logo', array( 'height' => 200, 'width' => 500, 'flex-height' => true, 'flex-width' => true, //'header-text' => array( 'site-title', 'site-description' ), // ) ); // Set up the WordPress core custom background feature. // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'newsgem_custom_background_args', array( 'default-color' => '', 'default-image' => '', ) ) ); } endif; add_action( 'after_setup_theme', 'newsgem_setup' ); function newsgem_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'newsgem_custom_header_args', array( 'default-image' => '', 'default-text-color' => 'c50404', 'height' => 250, 'width' => 1060, 'flex-height' => true, 'wp-head-callback' => 'newsgem_header_style', ) ) ); } add_action( 'after_setup_theme', 'newsgem_custom_header_setup' ); function newsgem_header_style() {?> urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return esc_url_raw( $fonts_url ); } endif; function newsgem_scripts() { wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array('jquery'),'',true); wp_enqueue_script('jquery_wow', get_template_directory_uri() . '/js/wow.js', array('jquery'),'',true); wp_enqueue_script('vTicker_js', get_template_directory_uri() . '/js/vTicker.js', array('jquery'),'',true); wp_enqueue_script('owl_carousel', get_template_directory_uri() . '/js/owl.carousel.js', array('jquery'),'',true); wp_enqueue_script('jquery_custom', get_template_directory_uri() . '/js/custom.js', array('jquery'),'',true); wp_enqueue_script('comment-reply'); wp_enqueue_style( 'newsgem-fonts', newsgem_fonts_url()); wp_enqueue_style('bootstrap', get_template_directory_uri().'/css/bootstrap.css'); wp_enqueue_style('newsgem-style', get_stylesheet_uri()); wp_enqueue_style('newsgem-responsive', get_template_directory_uri().'/css/responsive.css'); wp_enqueue_style('owl_carousel', get_template_directory_uri().'/css/owl.carousel.css'); wp_enqueue_style('animate', get_template_directory_uri().'/css/animate.css'); wp_enqueue_style('font-awesome', get_template_directory_uri().'/css/font-awesome.css', array(), '', 'all' ); } add_action('wp_enqueue_scripts', 'newsgem_scripts'); require get_template_directory() . '/admin/newsgem-comments.php'; require get_template_directory() . '/admin/newsgempro/class-customize.php'; require get_template_directory() . '/admin/template-tags.php'; require get_template_directory() . '/admin/customizer.php'; /*************************************/ /* REGISTR SIDBARS [WIDGET AREA] */ /*************************************/ function newsgem_widgets_init() { // Area 1, located at the top of the sidebar. register_sidebar(array( 'name' => __('Sidebar Widget Area', "newsgem"), 'id' => 'sidebar-1', 'description' => esc_html__('The sidebar widget area', "newsgem"), 'before_widget' => '
', 'before_title' => '