tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
// This theme styles the visual editor with editor-style.css to match the theme style.
add_editor_style();
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
*/
add_theme_support( 'post-thumbnails' );
add_image_size( 'amyra-lite-soft-featured', 870, 999999, false );
set_post_thumbnail_size( 870, 500, true );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'menu-1' => esc_html__( 'Header', 'amyra-lite' ),
'footer' => esc_html__( 'Footer', 'amyra-lite' ),
) );
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'comment-form',
'comment-list',
'gallery',
'caption',
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'amyra_lite_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
// Add theme support for selective refresh for widgets.
add_theme_support( 'customize-selective-refresh-widgets' );
// Add support for custom logo.
add_theme_support( 'custom-logo' );
// Post format.
add_theme_support( 'post-formats', array('video', 'audio', 'quote', 'gallery'));
// Add theme support for selective refresh for widgets.
add_theme_support( 'customize-selective-refresh-widgets' );
}
add_action( 'after_setup_theme', 'amyra_lite_setup' );
/**
* Admin Welcome Notice
*
* @package Amyra
* @since 1.0
*/
function amyra_lite_admin_welcom_notice() {
global $pagenow;
if ( is_admin() && isset( $_GET['activated'] ) && 'themes.php' === $pagenow ) {
echo '
'.sprintf( __( 'Thank you for choosing Amyra Blog theme. To get started, visit our welcome page.', 'amyra-lite' ), esc_url( admin_url( 'themes.php?page=amyra_lite' ) ) ).'