With your generous help, I customized the attachment page, but on mobile that created problems, because there was then a double menu.
I solved that for now by adding custom css:
@media (max-width: 768px) {
.main-navigation .menu-toggle {
display: none !important;
}
}
but of course now on smaller screens, there is no mobile menu at all.
the attachment page has its own element, for all media, and I’m using a child theme so I could customize the attachment page.
How can I solve this?