I have a site that already has # in its URL. Is there a way to create an anchor to a part of this page since # is already in URL.
For example, my page is www.example.com/#something so I would like to create an anchor point somewhere in the middle of the page and provide the user with URL that will take him directly to that part of the page.
Interesting. That “something” is called a fragment, and it wouldn’t make any sense to have two of them, so there’s no syntax to do that. The browser jumps to that fragment as an ID in your html, so it can’t exactly jump to two places.
Is your site somehow shared with several other sites all on the same domain all at the same url, with some mechanism that’s using the fragment to decide to jump to your site?
this site is using CMS (Wordpress) and has a page that has different tabs each tab adds #tab1, #tab2 etc to the end of URL so it becomes www.something.com/#tab1 and so on.
It does make sense… unfortunately I don’t have a good solution that doesn’t break wordpress. You’re wanting to tell the browser to first jump to tab1, and then also jump to “something” on that tab. If you were writing all the code yourself, it would be easy, but if it isn’t something built in to the wordpress theme already, I can’t think of a way to do it.