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

WP SITES

2787

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Custom Genesis Attachment Page for Images

This template enables you to fully customize the the default attachment.php template loaded by WordPress. The code enables you to determine the size of the image on the attachment page as well as the size of the image once clicked on the attachment page.

Genesis does not include a attachment.php file.

The code also generates srcset and size attributes for the image markup so browsers can choose to load the most appropriate size.

Demo Video

Shows how the custom attachment.php file, once added to a Genesis child theme, modifies the default template WordPress loads.

Template Installation

Simply upload the template to your child themes root directory and add to or remove code from the template to customize the image attachment page.

Register or login to access the template file :

Register for full access

Related Tutorials

  • Custom Attachment Page Template Which Links Attachment Image Back To The Parent Post
  • Add Pagination to WordPress Gallery Image Attachments In Genesis

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