Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #433169

    Hi,

    I am using the widget to add the sidebar menu into a page. I need to know how to make the links active when visitors are on a page. I would also like to make the top menu item active as well.

    Another post suggested this change in the js/avia.js for the top menu, but it did not work.

    if (active.parent(‘.widget_nav_menu’).length) {
    active = active.closest(‘li.dropdown_ul_available’).addClass(this.options.applyClass)
    }

    Can you provide with the solution for active status on both menus when a visitor is on a submenu page?

    Thanks!

    #433735

    Hi aerospec!

    This would be possible if they were pages but since your using them in portfolio posts WordPress is not displaying any classes for the current menu item.

    You could try adding this inside the content of each post to style them different.

    <style type = "text/css">
    .widget_nav_menu .menu > li:nth-child(3) > a { color: red !important; }
    </style>

    That code will change the third link color to red.

    Best regards,
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.