Support » Fixing WordPress » Add # to the unique link

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi vahidete, you cannot use the hash sign: #, because of a restriction on the URL address protocol, it’s not a WordPress restriction.

    The reason being because the hash sign can only be read by the web browser itself rather than the server (WordPress).

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    What he said. Hash marks cannot be in URLs. No workaround for that.

    Thank you very much, but I want to create a link in the menu section that after scrolling on that user scrolls down the page, I saw it on WordPress sites.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Ok, so if you make a link with a # in it, then what is after the hash should point to the ID of some element on the page.

    So, if you have something on the page like this:
    <div id='thing'>

    Then a URL of http://example.com/some-page/whatever#thing would link to that ID and make the page scroll there.

    You can use any URL you like in your menu item. Just put the URL into the menu.

    http://example.com/some-page/whatever#thing?? what is mean “whatever” here??!!
    I created an ID at the bottom of the site called <div id=’tell’>
    Now I want to edit one of the links in the site’s menu as a name
    http://www.examble.com/#tell
    But it is deleted after saving
    http://s9.picofile.com/file/8326010550/wpwp.jpg
    And in the end it is saved ->>> http://examble.com/tell

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Sorry, I can’t read your image.

    Just use a URL item in the menu, not a page item. You can add any URL you like with the right selection.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add # to the unique link’ is closed to new replies.