__( 'Primary Menu', 'altertech_s' ),
) );
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',
) );
/*
* Enable support for Post Formats.
*
* See: https://codex.wordpress.org/Post_Formats
*/
add_theme_support( 'post-formats', array(
'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat'
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'altertech_s_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
}
endif;
// altertech_s_setup
add_action( 'after_setup_theme', 'altertech_s_setup' );
// Add support for title tag.
function altertech_s_slug_setup() {
add_theme_support( 'title-tag' );
}
add_action( 'after_setup_theme', 'altertech_s_slug_setup' );
/**
* This theme have two sidebars one on the Right and one at the top of the footer.
* Register widget area.
*
* @link http://codex.wordpress.org/Function_Reference/register_sidebar
*/
function altertech_s_widgets_init() {
register_sidebar( array(
'name' => __( 'Right Sidebar', 'altertech_s' ),
'id' => 'sidebar-1',
'description' => 'This is a simple rght Sidebar, if i empty the site will be full width.',
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Footer Sidebar', 'altertech_s' ),
'id' => 'sidebar-2',
'description' => 'This is multi layout Footer Sidebar if empty appears the default content.',
'before_widget' => '