Home>Support>Anchor links in buttons or text links don’t work

Anchor links in buttons or text links don’t work

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi,
in my site the anchor links in buttons and also in normal text links don’t work. But menu links to anchors work!
I can’t discover the reason.

Theme: Create by Themetrust

Thank you for your support.

Best regard,
Taruk

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Hi Taruk

    Do you have a public URL where we can take a look at what’s going on? If you need to keep this URL private from other users, just select “Private Reply” on the bottom right of the comment box.

  2. 9 years, 9 months ago Private Message - taruk

    This is a private message.

  3. 9 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Thanks. For the button to find the row there needs to be an ID for it to find. Right now there is:

    data-row-id="kontakt"
    

    For a regular hash link that won’t work. So somewhere there you’d need to insert:

    id="kontakt"
    

    I’m not quite sure how the menu link works. That’s using smooth scroll.

    In the row above the contact form you have:

    <span style="font-size: 18px;">Claus</span>
    

    You could perhaps change that to:

    <span style="font-size: 18px;" id="kontakt">Claus</span>
    
  4. 9 years, 9 months ago taruk

    OK that works, not perfect because of the vertical stop point, but it works :) – Thank you. I expected that the page builder row id dialog would create id=”XXX” and didn’t looked it up.

    Kind regards,

    Taruk

  5. 9 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Unfortunately, only classes get created at the moment. You could perhaps try this plugin to play with the offset:

    https://wordpress.org/plugins/hash-link-scroll-offset/

  6. 9 years, 9 months ago taruk

    great. with this I could arrange it in a perfect way for this one anchor link and it scrolls smooth.

    Have a nice day!

  7. 9 years, 9 months ago Andrew Misplon
    Hi, I Work Here

    Super, glad to hear that helped.

    All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More