• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How to get rid of URL # hashtags for anchor scrolling?

Community Beginner ,
Jul 03, 2017 Jul 03, 2017

Copy link to clipboard

Copied

I can't seem to get a direct solution. I know it is either a script which needs to be inserted directly on the page or either on the server .htaccess maybe... not sure and just trying to find the answer.

All I want to do is not have the hashtag and anchor name show up for anchor scrolling.

For example, on a 1-page site, it has a link that says "sign up here" and when clicked it scrolls to the anchor which then creates #signup in the URL. Also, upon page refresh, it reloads at the anchor point.

I am pretty sure this is an easy fix, I would be grateful if someone could help me with this.

Views

462

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Jul 03, 2017 Jul 03, 2017

I am pretty sure this is an easy fix, I would be grateful if someone could help me with this.

You are wrong. This is not easy to fix and the only methods are those that you mentioned at the beginning of your post. Hire a web programmer, and order him a script for this.

There are two methods for javascript:

1) Hidden anchors (not a very efficient way)

2) Complete redesign of navigation without using anchors in links. All work on the transition to the anchor is performed only by javascript.

The method

...

Votes

Translate

Translate
Guide ,
Jul 03, 2017 Jul 03, 2017

Copy link to clipboard

Copied

LATEST

I am pretty sure this is an easy fix, I would be grateful if someone could help me with this.

You are wrong. This is not easy to fix and the only methods are those that you mentioned at the beginning of your post. Hire a web programmer, and order him a script for this.

There are two methods for javascript:

1) Hidden anchors (not a very efficient way)

2) Complete redesign of navigation without using anchors in links. All work on the transition to the anchor is performed only by javascript.

The method with htaccess should not be used - it can lead to serious accidents.

In general, I would advise you not to pay attention to this and leave it as it is.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines