browserstate / ajaxify

Ajaxify your entire website instantly with this simple drop-in script using the HTML5 History API with History.js and jQuery ScrollTo.
601 stars 94 forks source link

Does not assign a current state to home-link in the menu #37

Open LourensThalen opened 10 years ago

LourensThalen commented 10 years ago

Love Ajaxify, fits exactly to my needs. One problem though:

I use it on a WP install. It works like a charm, but it does not assign a 'current' class to the link that points to the homepage. The home-link is also the first link in the navigation, but I changed the order and the problem was not solved. It somehow forgets to mark the homepage as active. Does not matter which page you start from, all the links work, the home-link works as well but just does not recieve a current class. Does anybody know why this is?

Keep it up, awesome work! :)

subharanjanm commented 10 years ago

As you are trying to use it on WordPress, have a look into this plugin code: https://wordpress.org/plugins/ajaxify-wordpress-site/. See how this plugin uses the "ajaxify" code for menus.