[Resolved] Anchor on image links in gallery

Home Forums Support [Resolved] Anchor on image links in gallery

Home Forums Support Anchor on image links in gallery

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #750704
    Sergey

    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!

    #750736
    Leo
    Staff
    Customer Support

    Hi there,

    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.

    Or am I missing something here?

    #751901
    Sergey

    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?

    #751902
    Sergey

    It seems I can not remove the anchor manually …
    Can't remove anchor from image link

    #752211
    Leo
    Staff
    Customer Support

    Hmm GP doesn’t do anything special from WordPress gallery – you can test by activating a default WP twenty series theme.

    Maybe check your permalink settings?

    Might also be another plugin that’s causing this?

    If not then you might have to raise a topic to WordPress support.

    #752972
    Sergey

    Yes Leo, you right!
    The problem was in the smooth scrolling hook.
    Thanks for the tip!

    #752991
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.