Reply To: Child Pages – Active Nav

#2124
livemesh
Keymaster

By default, if there is nothing selected or no menu item active, the lava lamp menu sticks to home since this being a single page theme, the user is expected to be on the home page by default. Even if there are additional pages, the theme assumes there is a navigation in the menu for that page to help user navigate to this page. I see issues with this approach when you are visiting certain pages like the categories or individual blog posts. Will have a look at this issue and fix it in the next update – should be out by early next week. Hope this helps.

Meanwhile, a few of the missing highlights can be addressed by making changes to the file js/main.js file at line number 57 and 60 from the current code (should be part of next update) –

            // make the parent of current page active for lavalamp highlight
            $('#primary-menu > ul > li.current_page_ancestor').first().addClass('active');

            // make the current page active for lavalamp highlight - top list cannot have both a parent and current page item
            $('#primary-menu > ul > li.current_page_item').first().addClass('active');

to

            // make the parent of current page active for lavalamp highlight
            $('#primary-menu > ul > li.current-menu-ancestor').first().addClass('active');

            // make the current page active for lavalamp highlight - top list cannot have both a parent and current page item
            $('#primary-menu > ul > li.current-menu-item').first().addClass('active');