Textdomain: Create folder for languages in neuron theme directory
function neuron_theme_supports() {
// loading theme textdomain
load_theme_textdomain( 'neuron-ccdn', get_template_directory() . '/languages' );
// Gemerate automated feed links on head
add_theme_support( 'automatic-feed-links' );
// Adding automatic title tag
add_theme_support( 'title-tag' );
// Enabling post thumbnails
add_theme_support( 'post-thumbnails' );
// Register menu in primary location with id menu-1.
register_nav_menus( array(
'menu-1' => esc_html__( 'Primary', 'neuron-ccdn' ),
) );
/*
* 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',
) );
// Add theme support for selective refresh for widgets.
add_theme_support( 'customize-selective-refresh-widgets' );
// Custom logo support
add_theme_support( 'custom-logo', array(
'height' => 250,
'width' => 250,
'flex-width' => true,
'flex-height' => true,
) );
}
add_action('after_setup_theme', 'neuron_theme_supports');