[Plugin: Polylang] home link in menu is not highlighted on home of non-english pages
-
1stly, this is a brilliant plugin!!
I do have a small problem however:When i use wp_nav_menu(), the home link isnt being given the class ‘current_page_item’ on the home page of non-english pages. All other pages work properly (the correct link is highlighted for the current page), only the home page link doesnt get the correct class.
I have noticed that after a query_posts() call, the wp_nav_menu() works as expected and the class is attached to the home link. So a sitemap at the bottom of the page works correctly and home link is highlighted, but a menu call above query_posts() (like in the header, where my main menu is) doesnt work properly.
To get around this, i have to test if the current page is not an archive or a single page or using any of my templates or an error page.
While this works, surely there is an easier way….?
Is this a bug or something that is specific to my site, or something i am doing wrong?
- The topic ‘[Plugin: Polylang] home link in menu is not highlighted on home of non-english pages’ is closed to new replies.