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

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

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
  • Add Pagination to WordPress Gallery Image Attachments In Genesis

Metro Pro Theme

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.