'Top Menu',
)
);
//add_image_size('post_image',1100,750,true);
function sidebar(){
register_sidebar(
array(
'name'=>'Page Sidebar',
'id'=>'page-sidebar',
'class'=>'',
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
)
);
}
add_action( 'widgets_init', 'sidebar' );
function mytheme_add_woocommerce_support() {
add_theme_support( 'woocommerce' );
}
add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );
$args= array(
'width' => 1946,
'height' => 200,
'flex-height' => true,
'flex-width' => true,
'default-image'=> get_template_directory_uri().'/assets/images/facial.jpg',
'uploads'=> true
);
add_theme_support( 'custom-header', $args );
//for upload
function wpse_theme_setup() {
add_theme_support( 'automatic-feed-links' );
}
function wpse_add_title_support() {
add_theme_support( 'title-tag' );
}
add_action ( 'after_setup_theme', 'wpse_add_title_support' );
function language_attributes( $doctype = 'html' ) {
echo get_language_attributes( $doctype );
}
function wp_body_open() {
/**
* Triggered after the opening body tag.
*
* @since 5.2.0
*/
do_action( 'wp_body_open' );
}
if(! isset($content_width)){
$content_width = 660;
}
add_editor_style($stylesheet = 'editor-style.css' );
function new_excerpt_text(){
return '...';
}
add_filter('excerpt_more', 'new_excerpt_text');