Hi everyone!
In image thumbnails, an anchor “#main” is added to the image link, which leads to the beginning of the current page.
Example page (gallery at the bottom of the page) – https://housedsgn.ru/transart-foundation/
How can I remove an anchor to the links in the gallery?
Thanks!
Is that a WordPress gallery? If so you should be able to edit the link<a href="https://housedsgn.ru/transart-foundation/neobychnyj-dom-dlja-hudozhnika/#main"> and just remove the the #main part.
Yes it’s a WordPress gallery.
But anchor #main automatically added when loading media. How do i fix this for future uploads, and remove anchor from excisting links? Maybe there is a snippet or hook?