for posts and comments. add_theme_support( 'automatic-feed-links' ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array('comment-form', 'comment-list', 'gallery', 'caption' ) ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); add_theme_support( 'custom-logo', array( 'height' => 60, 'width' => 225, 'flex-height' => true, ) ); /** * Enable support for Post Thumbnails on posts and pages. * @param * @return mixed|string */ add_theme_support('post-thumbnails'); add_image_size( 'featuredlite-custom-thumb', 800, 450, true ); /* woocommerce support */ add_theme_support( 'woocommerce' ); // post-header image $defaults = array( 'default-image' => get_template_directory_uri().'/images/bg.jpg', 'width' => 0, 'height' => 0, 'flex-height' => false, 'flex-width' => false, 'uploads' => true, 'random-default' => false, 'header-text' => false, 'default-text-color' => 'f16c20', 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-header', $defaults ); add_editor_style( 'custom-editor-style.css' ); $args = array( 'default-color' => 'ffffff', ); add_theme_support( 'custom-background', $args ); // Recommend plugins add_theme_support( 'recommend-plugins', array( 'themehunk-customizer' => array( 'name' => esc_html__( 'ThemeHunk Customizer', 'featuredlite' ), 'active_filename' => 'themehunk-customizer/themehunk-customizer.php', ), 'lead-form-builder' => array( 'name' => esc_html__( 'Lead Form Builder', 'featuredlite' ), 'active_filename' => 'lead-form-builder/lead-form-builder.php', ), 'woocommerce' => array( 'name' => esc_html__( 'Woocommerce', 'featuredlite' ), 'active_filename' => 'woocommerce/woocommerce.php', ) ) ); } add_action( 'after_setup_theme', 'featuredlite_setup' ); require_once( get_template_directory() . '/inc/index.php' ); /** * Enqueue scripts and styles for the front end. */ function featuredlite_scripts() { $featuredlite_animation = get_theme_mod('featuredlite_animation_disable'); // Add Genericons font, used in the main stylesheet. if($featuredlite_animation =='' || $featuredlite_animation =='0'){ wp_enqueue_style( 'animate', get_template_directory_uri() . '/css/animate.css', array(), '1.0.0' ); } wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.css', array(), '1.0.0' ); wp_enqueue_style( 'owl-carousel', get_template_directory_uri() . '/css/owl.carousel.css', array(), '1.0.0' ); wp_enqueue_style('featuredlite-style', get_stylesheet_uri()); wp_add_inline_style( 'featuredlite-style', featuredlite_custom_header() ); // js include wp_enqueue_script( 'wow', get_template_directory_uri() . '/js/wow.js', array( 'jquery' ), '', true ); wp_enqueue_script( 'easing', get_template_directory_uri() . '/js/easing.js', array( 'jquery' ), '', true ); wp_enqueue_script( 'classie', get_template_directory_uri() . '/js/classie.js', array( 'jquery' ), '', true ); wp_enqueue_script( 'owl-carousel', get_template_directory_uri() . '/js/owl.carousel.js', array( 'jquery' ), '', true ); wp_enqueue_script( 'featuredlite-custom', get_template_directory_uri() . '/js/custom.js', array( 'jquery' ), '', true ); // Comment reply if (is_singular() && get_option('thread_comments')){ wp_enqueue_script('comment-reply'); } } add_action( 'wp_enqueue_scripts', 'featuredlite_scripts' ); ?>