Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function catch_store_header_title( $before = '', $after = '' ) {
- if ( is_front_page() ) {
- $header_media_title = get_theme_mod( 'catch_store_header_media_title', esc_html__( 'The Autumn Collection', 'catch-store' ) );
- if ( $header_media_title ) {
- echo $before . wp_kses_post( $header_media_title ) . $after;
- }
- } elseif ( is_singular() ) {
- if ( is_page() ) {
- if( ! get_theme_mod( 'catch_store_single_page_title' ) ) {
- the_title( $before, $after );
- }
- } else {
- the_title( $before, $after );
- }
- } elseif ( is_404() ) {
- echo $before . esc_html__( 'Nothing Found', 'catch-store' ) . $after;
- } elseif ( is_search() ) {
- /* translators: %s: search query. */
- echo $before . sprintf( esc_html__( 'Search Results for: %s', 'catch-store' ), '<span>' . get_search_query() . '</span>' ) . $after;
- } elseif ( is_shop() ) {
- echo $before . esc_html__('Shop', 'catch-store') . $after;
- }
- else {
- the_archive_title( $before, $after );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement