'',
'default-image' => '',
'default-repeat' => '',
'default-position-x' => '',
'default-attachment' => '',
'wp-head-callback' => '_custom_background_cb',
'admin-head-callback' => '',
'admin-preview-callback' => ''
));
add_editor_style();
require get_template_directory() . '/inc/customizer.php';
// Indicate widget sidebars can use selective refresh in the Customizer.(WP4.7)
add_theme_support( 'customize-selective-refresh-widgets' );
add_theme_support( 'custom-logo', array(
'height' => 50,
'width' => 220,
'flex-height' => true,
'flex-width' => true,
));
add_theme_support('custom-header',array(
//default image (empty to use none).
'default-image' => '',
'uploads' => true,
// Set height and width, with a maximum value for the width.
'height' => 48,
'width' => 1980,
));
}
add_action( 'after_setup_theme', 'simple_days_setup' );
function simple_days_required_stylesheets(){
wp_enqueue_style('simple_days', get_stylesheet_uri());
wp_enqueue_script( 'font-awesome', 'https://use.fontawesome.com/releases/v5.0.10/js/all.js', array(), null );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action('wp_enqueue_scripts','simple_days_required_stylesheets');
function simple_days_excerpt_more( $more ) {
if ( !is_admin() ){
return '';
}
}
add_filter( 'excerpt_more', 'simple_days_excerpt_more' );
function simple_days_the_excerpt( $post_excerpt, $post ) {
if ( !is_admin() ){
$more = sprintf( '...
>>%2$s',
esc_url(get_permalink( $post->ID )),
esc_attr__( 'Read More', 'simple-days' )
);
return $post_excerpt . $more;
}
}
add_filter( 'get_the_excerpt', 'simple_days_the_excerpt', 10, 2 );
function simple_days_widgets_init() {
register_sidebar(array(
'name' => esc_attr__( 'Sidebar', 'simple-days' ),
'id' => 'sidebar1',
'description' => esc_attr__( 'Add widgets here to appear in your sidebar.', 'simple-days' ),
'before_widget' => '