[resolved] twenty eleven custom attachement page (5 posts)

  1. sevenstudios
    Posted 4 years ago #

    I need to edit the attachment page and I need to know what file I need to edit. I tried a lot of the sub-templates (content-something.php) but none of those worked.


    This page is auto-generated from the image gallery as a link from the gallery.

    Thanks for you help in advanced.

  2. gavsiu
    Posted 4 years ago #

    Yeah. What worked with TwentyTen does not work in TwentyEleven for some reason. I used to have attachment.php point to loop-attachment.php, but now if I try to have an attachment.php point to content-attachment.php, it doesn't do anything.

  3. gavsiu
    Posted 4 years ago #

    I found the solution to my problem. The default TwentyEleven has an image.php which is higher in the hierarchy than the attachment.php for images.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress 3.2 theme and having access to an unedited version of the theme is vital when dealing with a range of site issues.

    Create a child theme for your customisations. Once your child theme is active, we should be able to help with the customisation.

  5. gavsiu
    Posted 4 years ago #

    I never said I edited the Twenty Eleven theme. I duplicated the theme and modified it from there. I keep the original for myself to reference.

Topic Closed

This topic has been closed to new replies.

About this Topic