Hi @chhavinarang,
I checked the settings of the SUperFly plugin and unfortunately, there is no option to force the accordion items to expand while drilling down to the current menu item.
You can customize the menu to force the expansion somehow but it is outside of our support scope and we can not implement the functionality.
Here is what I have in mind for the link below as an example:
The Cut and Paste menu item is the last active one. There is a unique class sfm-active-class
which shows the currently active menu item. Now, if we find the parent li
elements we will find the top-level accordion menu items and if we mimic the click
event it will be as we manually go and click the proper accordion menu items to force the accordion show the active item.
I came up with the Javascript code below that you can add into X > Theme Options > JS and it should work ok:
jQuery(window).load(function(){
jQuery('.sfm-active-class').parents('li').trigger('click');
});
The side effect of the code above is that it needs to wait for the whole page to load to make sure the accordion menu is loaded, and then attempts to mimic the clicking, So at the first glance the menus are closed and the whole page should be loaded, and then it expands with animation. Not an ideal situation but it is better than nothing.
Please kindly consider that the code above is just a starting point on your journey to customize the SuperFly plugin to have active expanded accordion menus. We will not be able to help further and we suggest that you hire a developer if you consider having a more robust solution.
Thank you for your understanding.