post_parent ) && $image->post_parent != $id ) $url .= '#main'; return $url; } add_filter( 'attachment_link', 'sight_enhanced_image_navigation', 10, 2 ); /** * Returns a "Continue Reading" link for excerpts */ function sight_reading_link() { return ' ' . __( 'Continue reading ', 'sight' ) . ''; } /** * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis. * * To override this in a child theme, remove the filter and add your own * function tied to the excerpt_more filter hook. */ function sight_auto_excerpt_more( $more ) { return ' …'; } add_filter( 'excerpt_more', 'sight_auto_excerpt_more' ); /** * Adds a pretty "Continue Reading" link to custom post excerpts. * * To override this link in a child theme, remove the filter and add your own * function tied to the get_the_excerpt filter hook. */ function sight_custom_excerpt_more( $output ) { if ( in_the_loop() && ! is_attachment() ) $output .= sight_reading_link(); return $output; } add_filter( 'get_the_excerpt', 'sight_custom_excerpt_more' ); /** * Filters wp_title to print a neat