get_template_directory_uri() .'/styling/img/header.jpg', 'width' => 1920, 'height' => 600, 'uploads' => true, 'default-text-color' => "fff", 'wp-head-callback' => 'beauty_parlour_header_style', ); add_theme_support( 'custom-header', $defaults ); // Menus register_nav_menus(array( 'primary' => esc_html__('Primary Menu', 'beauty-parlour'), )); // add excerpt support for pages add_post_type_support( 'page', 'excerpt' ); if ( is_singular() && comments_open() ) { wp_enqueue_script( 'comment-reply' ); } // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // Custom Backgrounds add_theme_support( 'custom-background', array( 'default-color' => 'ffffff', ) ); // To use additional css add_editor_style( 'styling/css/editor-style.css' ); } add_action( 'after_setup_theme', 'beauty_parlour_theme_setup' ); } function beauty_parlour_header_style() { $header_text_color = get_header_textcolor(); ?> (', ' ', $links); $links = str_replace(')', '', $links); return $links; } add_filter('wp_list_categories', 'beauty_parlour_cat_count_span'); function beauty_parlour_style_the_archive_count($links) { $links = str_replace(' (', ' ', $links); $links = str_replace(')', '', $links); return $links; } add_filter('get_archives_link', 'beauty_parlour_style_the_archive_count'); function new_excerpt_more( $more ) { return '...'; } add_filter('excerpt_more', 'new_excerpt_more'); /** * Register sidebars for beauty-parlour */ function beauty_parlour_sidebars() { // Blog Sidebar register_sidebar(array( 'name' => esc_html__( 'Blog Sidebar', "beauty-parlour"), 'id' => 'blog-sidebar', 'description' => esc_html__( 'Sidebar on the blog layout.', "beauty-parlour"), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); // Footer Sidebar register_sidebar(array( 'name' => esc_html__( 'Footer Widget Area 1', "beauty-parlour"), 'id' => 'beauty-parlour-footer-widget-area-1', 'description' => esc_html__( 'The footer widget area 1', "beauty-parlour"), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__( 'Footer Widget Area 2', "beauty-parlour"), 'id' => 'beauty-parlour-footer-widget-area-2', 'description' => esc_html__( 'The footer widget area 2', "beauty-parlour"), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__( 'Footer Widget Area 3', "beauty-parlour"), 'id' => 'beauty-parlour-footer-widget-area-3', 'description' => esc_html__( 'The footer widget area 3', "beauty-parlour"), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__( 'Footer Widget Area 4', "beauty-parlour"), 'id' => 'beauty-parlour-footer-widget-area-4', 'description' => esc_html__( 'The footer widget area 4', "beauty-parlour"), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } add_action( 'widgets_init', 'beauty_parlour_sidebars' ); /** * Comment layout */ function beauty_parlour_comments( $comment, $args, $depth ) { ?>
id=""> comment_approved == '0') : ?>

array( 'media-object','' ) )); ?>
$depth, 'max_depth' => $args['max_depth']))) ?>
'; return $form; } endif; add_filter( 'get_search_form', 'beauty_parlour_customize_search_form', 15 ); ?>