100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ); add_theme_support( 'custom-logo', $defaults ); } add_action( 'after_setup_theme', 'atreus_after_setup_theme' ); function atreus_init() { register_nav_menus( array( 'hero-header-menu' => __( 'Hero Header Menu', 'atreus' ), 'hero-footer-menu' => __( 'Hero Footer Menu', 'atreus' ) ) ); } add_action( 'init', 'atreus_init' ); function atreus_wp_nav_menu($nav, $args) { if( $args->theme_location == 'hero-header-menu' ) { return preg_replace('/ __( 'Sidebar', 'atreus' ), 'id' => 'custom-side-bar', 'description' => __( 'Sidebar', 'atreus' ), 'before_widget' => '
', 'after_widget' => "
", 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'atreus_widgets_init' ); function atreus_get_search_form($form) { $form = ''; return $form; } add_filter( 'get_search_form', 'atreus_get_search_form', 100 ); function atreus_comment_form_before() { if( get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'comment_form_before', 'atreus_comment_form_before' );