Support » Fixing WordPress » How to modify theme for that page where gallery pics are shown?

Viewing 3 replies - 1 through 3 (of 3 total)
  • good question! Out of the box, it seems to use the single.php page template, but clearly Matt’s single pages are of a different template than his single gallery pages.

    A closer look at how the gallery works shows how the magic happens. You can select “link to page” for reach of the gallery entries, and if you do that, clicking on the thumbnails brings you to a new page that is only for that attachment. The attachment page will use the following templates in this order: attachment.php, single.php, index.php. For more info on attachments, surf over to:

    Using Image and File Attachments

    So, I’m betting that Matt simply made an attachment.php file and styled it for the images.

    I hope that helps! 🙂




    Perfect!! 🙂

    Wow, I love the theme on I’m new to php and WordPress, and Matt does a lot of awesome customizations that I’d like to figure out how to do.

    For instance, I really want to modify the Zack 990 theme so that on the image attachments pages I can have a text link ABOVE my photos that say “next picture” and “previous picture” in text. (Currently the theme has clickable photos at bottom and the text isn’t an actual link — or I could just copy it to the top).

    Here is an example of the unmodified theme’s attachment page.

    Can someone help me with the code I need to insert to get a TEXT link to the next/last picture? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to modify theme for that page where gallery pics are shown?’ is closed to new replies.