WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. sevenstudios
    Member
    Posted 2 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.

    http://www.rarecars.com/2011/08/1934-ford-40-special-speedster/1934-ford-40-special-speedster-2/

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

    Thanks for you help in advanced.

  2. gavsiu
    Member
    Posted 2 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
    Member
    Posted 2 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
    Theme Diva & Forum Moderator
    Posted 2 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
    Member
    Posted 2 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