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 :
Was This Tutorial Helpful?