'

', 'close' => '

', 'content' => get_the_title( wc_get_page_id( 'shop' ) ), 'context' => 'archive-title', ) ); } elseif ( 'posts' === get_option( 'show_on_front' ) && is_home() ) { genesis_markup( array( 'open' => '

', 'close' => '

', 'content' => apply_filters( 'studio_latest_posts_title', __( 'Latest Posts', 'studio-pro' ) ), 'context' => 'archive-title', ) ); } elseif ( is_404() ) { genesis_markup( array( 'open' => '

', 'close' => '

', 'content' => apply_filters( 'genesis_404_entry_title', __( 'Not found, error 404', 'studio-pro' ) ), 'context' => 'archive-title', ) ); } elseif ( is_search() ) { genesis_markup( array( 'open' => '

', 'close' => '

', 'content' => apply_filters( 'genesis_search_title_text', __( 'Search results for: ', 'studio-pro' ) ) . get_search_query(), 'context' => 'archive-title', ) ); } elseif ( is_page_template( 'page_blog.php' ) ) { do_action( 'genesis_archive_title_descriptions', get_the_title(), '', 'posts-page-description' ); } elseif ( is_single() || is_singular()) { genesis_do_post_title(); } } add_action( 'studio_page_header', 'studio_page_excerpt', 20 ); /** * Display page excerpt. * * Prints the correct excerpt on a per page basis. If on the WooCommerce shop * page then the products result count is be displayed instead of the page * excerpt. Also, if on a single product then no excerpt will be output. * * @since 2.2.4 * * @return void */ function studio_page_excerpt() { if ( class_exists( 'WooCommerce' ) && is_shop() ) { woocommerce_result_count(); } elseif ( is_home() ) { printf( '

%s

', do_shortcode( get_the_excerpt( get_option( 'page_for_posts' ) ) ) ); } elseif ( is_search() ) { $id = get_page_by_path( 'search' ); if ( has_excerpt( $id ) ) { printf( '

%s

', do_shortcode( get_the_excerpt( $id ) ) ); } } elseif ( is_404() ) { $id = get_page_by_path( 'error' ); if ( has_excerpt( $id ) ) { printf( '

%s

', do_shortcode( get_the_excerpt( $id ) ) ); } } elseif ( ( is_single() || is_singular() ) && ! is_singular( 'product' ) && has_excerpt() ) { printf( '

%s

', do_shortcode( get_the_excerpt() ) ); } } add_action( 'genesis_before_content_sidebar_wrap', 'studio_page_header' ); /** * Display the page header. * * Conditionally outputs the opening and closing page header markup and runs * studio_page_header which all of our header functions are hooked to. * * @since 2.2.4 * * @return void */ function studio_page_header() { // Output opening markup. if ( apply_filters( 'studio_page_header_open', true ) ) { ?>