'; } } add_action( 'wp_head', 'business_theme_pingback_header' ); /* * Add an extra li to our nav for our priority+ navigation to use */ function business_theme_add_ellipses_to_nav( $items, $args ) { if ( 'menu-1' === $args->theme_location ) : $items .= ''; endif; return $items; } add_filter( 'wp_nav_menu_items', 'business_theme_add_ellipses_to_nav', 10, 2 ); function business_theme_add_ellipses_to_page_menu( $items, $args ) { $items .= ''; return $items; } add_filter( 'wp_list_pages', 'business_theme_add_ellipses_to_page_menu', 10, 2 ); /** * Replaces "[...]" (appended to automatically generated excerpts) with ... and a 'Continue reading' link. * @return string 'Continue reading' link prepended with an ellipsis. */ if ( ! function_exists( 'business_theme_excerpt_more' ) ) : function business_theme_excerpt_more( $more ) { $link = sprintf( '%2$s', esc_url( get_permalink( get_the_ID() ) ), /* translators: %s: Name of current post. */ sprintf( esc_html__( 'Continue reading %s', 'business_theme' ), '' . get_the_title( get_the_ID() ) . '' ) ); return ' … ' . $link; } add_filter( 'excerpt_more', 'business_theme_excerpt_more' ); endif;