admin管理员组

文章数量:1122832

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 months ago.

Improve this question

I have a button on my site, that will take you to somewhere else in the same page. But that id is appearing in the URL. And I don't want it to be shown. So in my URL there is the main part / site name / the id that I don't want to show.

here is the URL picture: till the hostinger is the main part after / is the site name / #and the id:

I found that I should go to settings and in permanlinks I should change it to Post name but I used it already so I didn't got anywhere. I didn't find any wordpress support email address either.

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 months ago.

Improve this question

I have a button on my site, that will take you to somewhere else in the same page. But that id is appearing in the URL. And I don't want it to be shown. So in my URL there is the main part / site name / the id that I don't want to show.

here is the URL picture: till the hostinger.com is the main part after / is the site name / #and the id:

I found that I should go to settings and in permanlinks I should change it to Post name but I used it already so I didn't got anywhere. I didn't find any wordpress support email address either.

Share Improve this question edited Sep 17, 2024 at 16:35 fuxia 107k38 gold badges255 silver badges459 bronze badges asked Sep 17, 2024 at 10:42 AdamAdam 1
Add a comment  | 

1 Answer 1

Reset to default 4

That's a basic facet of how web browsers work, you pass the ID as fragment in the address bar and it knows to scroll to that point. It would be possible to bodge your way around it with an event handler, but

  1. That's not specific to WordPress, so would be best asked on a different Stack
  2. Interfering with the browser's page history is bad UX

本文标签: How to hide ids from URL