• Resolved qzya

    (@qzya)


    I use woof plugin for filtering elements on my woocommerce site. When I apply the filter, the page reloads but the menu is not expands to the desired section. probably this happens because the filter changes the url (adds the request to the url and it becomes so “/product-category/plastinki/sov-plast/sov-estrada/?swoof=1&pa_sostoyanie-plastinki=vg&really_curr_tax=30-product_cat”)
    is there a way to open menu in the right section with filter?

    • This topic was modified 8 years, 3 months ago by qzya.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi qzya,

    So the menu opening depends on the current-menu-item state, which is determined by the WordPress core. I expect you are right, that the filter URL is not something that WordPress picks up on when evaluating current items.

    You can always open the menu with javascript. You could currently trigger the ‘click’ action on the appropriate submenu toggle. And I’m working on adding a JS API where you’d be able to call an “open_submenu” function on the menu to open your desired submenu programmatically. In either case, however, the logic of which submenu to open then is something you’d have to customize, as it doesn’t sound like the filtering plugin you’re using is “connected” to how the menu system’s current item detection works (of course, I have no idea about exactly what that plugin does or how it’s working on yours site, so I can’t be any more specific).

    Best,

    Chris

    Thread Starter qzya

    (@qzya)

    Thanks, Chris.
    I`ve solved my problem using another filter-plugin with AJAX load.

    Plugin Author sevenspark

    (@sevenspark)

    Glad to hear you got things set up the way you wanted ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bellows menu and filters’ is closed to new replies.