How can I make user groups automaticaly expanded in left sidebar?

Radovan Grznarik Posted in Beginning Developers 3 months ago

I would like to have Groups submenu expanded without user having to click to drop-down arrow. In a similar way as already Main menu (Links) is done. Is it possible to do it in easy way or do I want too much?:)
Thank you for answers

Replies
Indonesian Arsalan Shah Replied 3 months ago

Simple add following into end of your theme js file

$(document).ready(function(){
    $(".menu-section-groups").trigger('click');                 
});

Flush cache of site after that .
Theme file example for goblue theme is https://github.com/opensource-socialnetwork/opensource-socialnetwork/blob/v6.x/themes/goblue/plugins/default/js/goblue.php