I would like to create a special page template in my theme for viewing the media library files.

Currently, when I click a Media Library image file I get a page template from the parent theme.

Does anyone know what template that is so I can tweak it as a child template?


You need to create attachment.php in your child theme. Please check here for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.