Hello,
when I switched to GeneratePress, I noticed that a URL parameter (or whatever it is called) “#main” is appended to URLs of my attachment pages. This didn’t happen with my old theme.
Example: https://www.alex-kunz.com/photos/summer-dawn-at-garnet-peak/#main
I didn’t think of it much at first, but it seems that this has caused Google to drop >5000 attachment pages with photos from their search index. Yikes! I’m running a photography site and DO want the attachments to be indexed (Yoast SEO is configured to include them in the sitemap).
https://www.dropbox.com/s/xbkhotp69yn9ski/wmc.png?dl=0 <– find the date when I switched to GeneratePress… π
How do I remove this #main thing from the attachment page URLs?
Thanks
Alex.