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