Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript On Ajaxifying wordpress, it only works when you’re on the front page… How 2 make it work all over?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31592
    trusktr
    Member

    Currently the ajaxed wordpress tutorial only works with the homepage, but if you point your browser to any other post or page it won’t have the ajax functionality.

    How can you make it so that all pages are ajaxed and no matter what the URI is, a hash will be added and the content will load.

    For example, if you are at foobar.com/2/3/11/some-post and you click on a link, the uri should be updated to be like foobar.com/2/3/11/some-post/#/new-location and the new location should load. How do you achieve this? Gimme a hint!

    #55192
    trusktr
    Member

    Nevermind. I got it. ;)

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.