__('Main Menu', 'adoel')
));
}
add_action('after_setup_theme', 'adoel_setup');
function adoel_widgets_init() {
register_sidebar(array(
'name' => __('Sidebar', 'adoel'),
'id' => 'sidebar-1',
'description' => __('Main sidebar', 'adoel'),
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
));
}
add_action('widgets_init', 'adoel_widgets_init');
function adoel_enqueue_assets() {
wp_enqueue_style('adoel-style', get_stylesheet_uri());
if (is_singular() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
}
}
add_action('wp_enqueue_scripts', 'adoel_enqueue_assets');
// Block Pattern
if (function_exists('register_block_pattern')) {
require_once get_template_directory() . '/patterns/hero.php';
}
?>