Highlighted

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

Community Beginner ,
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.


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.

Views

361

Likes

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

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

Community Beginner ,
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.


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.

Views

362

Likes

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
Jul 03, 2017 0
Guide ,
Jul 03, 2017

Copy link to clipboard

Copied


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.

Likes

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
Reply
Loading...
Jul 03, 2017 0