post_parent ) && $image->post_parent != $id ) $url .= '#main'; return $url; } add_filter( 'attachment_link', 'cheer_enhanced_image_navigation', 10, 2 ); /** * Adjusts content_width value for the full width template. */ function cheer_content_width() { if ( is_page_template( 'nosidebar-page.php' ) ) { global $content_width; $content_width = 928; } } add_action( 'template_redirect', 'cheer_content_width' );