get_template_directory_uri() .'/scripts/images/header.jpg',
'width' => 1920,
'height' => 600,
'uploads' => true,
'default-text-color' => "515151",
);
add_theme_support( 'custom-header', $defaults );
// Menus
register_nav_menus(array(
'primary' => esc_html__('Primary Menu', 'bodyfit'),
));
// 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( 'scripts/css/editor-style.css' );
}
add_action( 'after_setup_theme', 'bodyfit_theme_setup' );
}
function bodyfit_header_style()
{
$bodyfit_header_text_color = get_header_textcolor();
?>
esc_html__( 'Blog Sidebar', "bodyfit"),
'id' => 'blog-sidebar',
'description' => esc_html__( 'Sidebar on the blog layout.', "bodyfit"),
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
// Footer Sidebar
register_sidebar(array(
'name' => esc_html__( 'Footer Widget Area 1', "bodyfit"),
'id' => 'bodyfit-footer-widget-area-1',
'description' => esc_html__( 'The footer widget area 1', "bodyfit"),
'before_widget' => ' ',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => esc_html__( 'Footer Widget Area 2', "bodyfit"),
'id' => 'bodyfit-footer-widget-area-2',
'description' => esc_html__( 'The footer widget area 2', "bodyfit"),
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => esc_html__( 'Footer Widget Area 3', "bodyfit"),
'id' => 'bodyfit-footer-widget-area-3',
'description' => esc_html__( 'The footer widget area 3', "bodyfit"),
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => esc_html__( 'Footer Widget Area 4', "bodyfit"),
'id' => 'bodyfit-footer-widget-area-4',
'description' => esc_html__( 'The footer widget area 4', "bodyfit"),
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
));
}
add_action( 'widgets_init', 'bodyfit_sidebars' );
/**
* Comment layout
*/
function bodyfit_comments( $comment, $args, $depth ) { ?>
id="">
comment_approved == '0') : ?>