The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

wordpress nav issue (advanced)

  • # February 19, 2013 at 10:14 pm

    I have a custom walker for my WordPress navigation. I am trying to make a one page wordpress site but I ran into trouble trying to get single pages working so I decided to just go ahead and reload the page to display the single pages. So my custom walker adds characters to the navigation to make it work. So it looks like this!/post1

    When I click on a permalink, it changes to the standard link

    My problem is that when I try to go to another page, the old address does not go away. So instead of getting!/about

    I get this!/about

    my custom walker

    On a side note. Does anyone know of any tutorials on making a one page wordpress site? I have been finding it to be very difficult.

    # February 20, 2013 at 2:46 pm

    In terms of creating a WordPress site without page reloading (using `window.location.hash`), check out:

    In terms of the hash not being removed when you go to another page, I think you need to reset it back to null in your JavaScript if there is a query string in the URI. For example:

    if(window.location.pathname.indexOf(‘?p=’) != -1) {
    window.location.hash = null

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed