• 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

Genesis Basic Custom Attachment Page File

You can use this attachment page file to create you own custom attachment page for all attachments or just your image attachments.

Update : Here’s the latest attachment template for Genesis which also generates a set of responsive images your browser can choose from to load.

Simply rename the file to image.php if you only want to use the template to display image attachments.

Usage

  1. Create anew file using a code editor like Notepad++
  2. Copy the PHP code from the view raw link in the Gist
  3. Paste the code into the new file
  4. Name the file attachment.php or image.php
  5. Upload the file to the root directory of your child theme folder

Ideas

If you’re looking for idea’s on what you can do with a custom attachment image.php file, take a look in the Twenty Fourteen default theme.

Related Tutorials

  • Custom Genesis Attachment Page for Images
  • Change Attachment Page Image Size

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