# Make anchor links work without url changing and smooth scroll

**URL:** <https://community.hivepress.io/t/make-anchor-links-work-without-url-changing-and-smooth-scroll/528>\
**Category:** HivePress\
**Created:** [June 18, 2022, 6:52pm UTC](https://community.hivepress.io/t/make-anchor-links-work-without-url-changing-and-smooth-scroll/528 "2022-06-18T18:52:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heizpad](https://community.hivepress.io/letter_avatar_proxy/v4/letter/h/90db22/32.png) [@Heizpad](https://community.hivepress.io/u/Heizpad)\
**Post date:** [June 18, 2022, 6:52pm UTC](https://community.hivepress.io/t/make-anchor-links-work-without-url-changing-and-smooth-scroll/528/1 "2022-06-18T18:52:36Z")

</div>

Hi there!

I noticed (on the listing view page, but it’s probably on every page that has anchor links) that it jumps to the anchor position instead of scrolling smoothly, which I’d prefer. Also it changes the url to #anchor which is not ideal imo.

Thank you!

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [June 19, 2022, 4:30pm UTC](https://community.hivepress.io/t/make-anchor-links-work-without-url-changing-and-smooth-scroll/528/3 "2022-06-19T16:30:37Z")

</div>

Hi,  
The URL change is the expected behavior for anchor links (this way it’s possible to link to reviews or location directly - it worked this way since the first version), but we had to remove the smooth scroll because it caused a few issues. You can enable it again using this CSS snippet:

```auto
html {
  scroll-behavior: smooth;
}

```

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [July 19, 2022, 4:30pm UTC](https://community.hivepress.io/t/make-anchor-links-work-without-url-changing-and-smooth-scroll/528/4 "2022-07-19T16:30:40Z")

</div>

Closed on July 19, 2022, 4:30pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
