Anchor link within same page not working

Hello Support Team,

I can't make a link to work within the same page. For example, on my page http://smiledentaltours.com, under the section "how it works?" I want the text "Get your dental free consultation" to have a link that goes to the form below on the same page.  I added a link to this text "http://smiledentaltours.com/#bookconsultation" and then, added an Element ID to the custom heading below "To get your perfect smile has never been this easy!" bookconsultation. But it doesn't work. I also added a text with an anchor "bookconsultation" but it didn't work either.

How can I accomplish to make a link go to a certain section on the same page?

Thanks and regards,

Angelica

Comments

  • Hello Angelica,
    this is not working because you need to add your ID to sections only. The section has a custom ID field.
    This will work then, but it will not scroll smoothly. If you want a custom link or button to use the scrolling script, you need to add a class="scroll" to this element, so for custom links it would be:
    <a href="#customid" class="scroll>link</a>
    For buttons, just add a scroll class in the custom class field.
    thanks
Sign In or Register to comment.