Ticket #23543: 23543.diff
| File 23543.diff, 796 bytes (added by , 13 years ago) |
|---|
-
wp-content/themes/twentythirteen/functions.php
572 572 * Adds support for a custom header image. 573 573 */ 574 574 require( get_template_directory() . '/inc/custom-header.php' ); 575 576 /** 577 * Add Anchor Hash to Attachment Page Navigation 578 * 579 * Appends a hash anchor to attachment link URLs, which jumps the page 580 * focus down to view the attachment when the attachment page loads. 581 * 582 * @since Twenty Thirteen 1.0 583 */ 584 function twentythirteen_filter_attachment_url( $link ) { 585 return $link . '#main'; 586 } 587 add_filter( 'attachment_link', 'twentythirteen_filter_attachment_url' );