__( 'Primary Menu', 'beach' ), 'secondary' => __( 'Secondary Menu', 'beach' ), ) ); /** * Enable support for Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'gallery', 'quote', 'status' ) ); } endif; // beach_setup add_action( 'after_setup_theme', 'beach_setup' ); if ( ! function_exists( 'wp_body_open' ) ) : /** * Fire the wp_body_open action. * * Included for backward compatibility with WordPress versions prior to 5.2. */ function wp_body_open() { do_action( 'wp_body_open' ); } endif; /** * Enqueue scripts and styles */ function beach_scripts() { wp_enqueue_style( 'beach', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'beach_scripts' ); /** * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. */ function beach_page_menu_args($args) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'beach_page_menu_args' ); /** * Register widgetized area and update sidebar with default widgets */ function beach_widgets_init() { register_sidebar( array ( 'name' => __( 'Sidebar', 'beach' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '