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 :

Related Tutorials

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.