• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Custom Attachment Page Template Which Links Attachment Image Back To The Parent Post

This template enables you to customize/modify the default attachment page output for images.

On the attachment page, you can :

  • Set the size of the attachment image
  • Set the text before link
  • Link the image on the attachment page back to the original parent post

In the following example, we only show the attachment page image title, link to parent post and image. All other elements are removed using code in the template which you can remove or modify to show any default elements.

Demo Video #

Shows the image upload to the parent post linked back from the attachment page to the parent posts where it was originally uploaded. Also includes a link back to the parent post with text displaying before the attachment image.

Tested using the Metro Pro child theme by StudioPress however will work in any Genesis child theme.

Code Installation #

There’s only 1 step :

Register for full access

Related Templates

  • Custom Genesis Attachment Page Template for Images

Metro Pro Theme

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems