esc_html__('Primary Menu', 'pet-care-clinic'),
'footer-links' => esc_html__('Footer Links', 'pet-care-clinic') // secondary menu in footer
));
// Enable support for Post Formats.
add_theme_support('post-formats', array('aside', 'image', 'video', 'quote', 'link'));
// Setup the WordPress core custom background feature.
add_theme_support('custom-background', apply_filters('pet_care_clinic_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
)));
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded
tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support('title-tag');
add_theme_support( 'custom-logo', array(
'height' => 100,
'width' => 400,
'flex-height' => true,
'flex-width' => true,
'header-text' => array( 'site-title', 'site-description' ),
) );
add_theme_support('custom-header');
}
endif; // pet_care_clinic_setup
add_action('after_setup_theme', 'pet_care_clinic_setup');
function pet_care_clinic_theme_add_editor_styles() {
add_editor_style( 'custom-editor-style.css' );
}
add_action( 'admin_init', 'pet_care_clinic_theme_add_editor_styles' );
/**
* Add a pingback url auto-discovery header for single posts, pages, or attachments.
*/
function pet_care_clinic_pingback_header() {
if ( is_singular() && pings_open() ) {
printf( '', esc_url( get_bloginfo( 'pingback_url' ) ) );
}
}
add_action( 'wp_head', 'pet_care_clinic_pingback_header' );
/**
* Register widgetized area and update sidebar with default widgets.
*/
function pet_care_clinic_widgets_init() {
register_sidebar(array(
'name' => __('Sidebar', 'pet-care-clinic'),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
register_sidebar(array(
'id' => 'contact-widget',
'name' => __('Contact Widget', 'pet-care-clinic'),
'description' => __('Displays on the Home Page', 'pet-care-clinic'),
'before_widget' => '