250, 'height' => 250, 'flex-width' => true, 'flex-height' => true, )); // Set the content_width with 900 if ( ! isset( $content_width ) ) $content_width = 900; // Custom-header add_theme_support( 'custom-header', apply_filters( 'aneeq_custom_header_args', array( 'default-text-color' => '333', 'width' => 1920, 'height' => 320, 'flex-height' => true, 'wp-head-callback' => 'aneeq_header_style', ) ) ); $defaults = array( 'default-color' => '', 'default-image' => '', 'default-repeat' => 'repeat', 'default-position-x' => 'left', 'default-position-y' => 'top', 'default-size' => 'auto', 'default-attachment' => 'scroll', 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ); add_theme_support( 'custom-background', $defaults ); add_editor_style('css/editor-style.css'); } /** * Display Blog Setup notice on customizer page */ function aneeq_prefix_upsell_notice() { // Enqueue the script wp_enqueue_script( 'prefix-customizer-upsell', get_template_directory_uri() . '/js/upsell.js', array(), '1.0.0', true ); // Localize the script wp_localize_script( 'prefix-customizer-upsell', 'prefixL10n', array( 'prefixURL' => esc_url( 'https://awplife.com/aneeq-free-wordpress-theme-setup/' ), 'prefixLabel' => __( 'Aneeq Free WordPress Theme Setup', 'aneeq' ), ) ); } add_action( 'customize_controls_enqueue_scripts', 'aneeq_prefix_upsell_notice' ); //modify page / post title using title filter add_filter('wp_title', 'aneeq_filter_pagetitle'); function aneeq_filter_pagetitle($title) { //check if its a blog post return $title = $title . ' | '; bloginfo( 'name' ); } //Add Theme Support Like - featured image, image crop, post format, rss feed add_theme_support('post-thumbnails'); // featured image //Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); //woo-commerce theme support add_theme_support( 'woocommerce' ); add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); /** * Aneeq - Load Theme Option Panel CSS and JS Start */ function aneeq_backend_resources(){ //aneeq theme css wp_enqueue_style( 'aneeq-style', get_stylesheet_uri()); wp_enqueue_style( 'aneeq-bootstrap-min-css', get_template_directory_uri() . '/css/bootstrap/bootstrap.min.css'); //JS & CSS wp_enqueue_style( 'font-awesome-css', get_template_directory_uri() . '/css/font-awesome.css'); wp_enqueue_style('style', get_stylesheet_uri()); add_action('wp_enqueue_scripts', 'example_enqueue_styles'); wp_enqueue_script('jquery'); wp_enqueue_script('aneeq-main-js', get_template_directory_uri() . '/js/main.js', array('jquery'), 1.0, true); wp_enqueue_script('bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array('jquery')); //dropdown menus js wp_enqueue_script('aneeq-smartmenus-js', get_template_directory_uri() . '/js/jquery.smartmenus.js'); wp_enqueue_script('aneeq-smartmenus-bootstrap-js', get_template_directory_uri() . '/js/jquery.smartmenus.bootstrap.js'); //Slider wp_enqueue_script('jquery-owl-carousel-js', get_template_directory_uri() . '/js/owl.carousel.js'); wp_enqueue_style( 'owl-carousel-css', get_template_directory_uri() . '/css/owl.carousel.css'); } //Aneeq - Load Theme Option Panel CSS and JS End /** * Aneeq Widgets Start */ function aneeq_theme_widgets() { //Blog / Page Sidebar Widget register_sidebar( array( 'name' => esc_html__( 'Sidebar Widget', 'aneeq'), 'id' => 'sidebar-widget', 'before_widget' => '', 'before_title' => '