Forums

Changing permalink structure to add hash at the start (4 posts)

  1. ChrisG4620
    Member
    Posted 1 year ago #

    I am looking for a way to add a hash symbol into the url. If possible via plugin hooks, otherwise by modification of the permalink structure in the admin pannel.

    Supposing my URLS looked like this:

    I now want the urls to look like this:

    I have no idea how this person has done it, but if you look at this post, he has something similar on his site: http://www.designobsessions.com/#profile, I found this from this post: http://wordpress.org/support/topic/permalink-structure-3?replies=8.

    I have tried to manually edit the permalink structure, by adding a hash at the beginning of my custom structure. But when i save it, it gets removed.

    So I am completely lost, any guidance of any amount is very much appreciated :)

    Thanks.

  2. vtxyzzy
    Member
    Posted 1 year ago #

    I think you might misunderstand how the hash mark is used.

    It serves to point to an 'anchor' on a page and should be at the end of the link as in the #profile example you showed.

    Here is an article on How to Add Anchor Links to a Page that might help.

    In any case, I don't think you can get this by changing the permalink structure.

  3. willybahuaud
    Member
    Posted 10 months ago #

    I got the same probleme. I want to ajaxize my wordpress theme (using escaped frament). I can't modify permalink structure adding a hash...

    Did you find a solution ?

    Thanks a lot for your answer.

  4. barankin
    Member
    Posted 8 months ago #

    They have done this all themselves.

    You look at the javascript they've written, they intercepts the clicks and re-write the destination url to be #about instead of /about. Then dynamically loads the page content. Well, it's a lot more complicated than just that, but it give you the basic philosophy. It's very nicely done actually.

    http://www.designobsessions.com/wp-content/themes/galleria/js/custom.js?ver=1.2.6

    It would be interesting to build a plugin that could do this by default. It would require a lot of configuration though because you'd need to know all the html class and id infor.

Topic Closed

This topic has been closed to new replies.

About this Topic