I am trying to customize the default page that displays images (when they are attached to a page using the Display Settings Link To set to “Attachment Page”)
I thought that if I create an attachment.php file for my theme that the WordPress hierarchy will automagically look for it and use it. But that does not seem to be the case.
What seems to be happening, is that the attachment file name (the one displayed in the WordPress GUI for adding an image to a page) does try to display, but then is hijacked by going to a link directly to the image. (For example, my attachment page is https://mysite.com/pagename/imagename1/, but if I paste that into my browser, it changes to https://mysite.com/wp-content/uploads/imagename1.jpg right away)
How do I get WeaverX to use my attachment.php page?