Support Forum

How to display Groups 'closed' as default instead of 'open'

PM Patricia Miller
Patricia Miller
Member

I have a number of Groups, each with a number of Forums.  I would like for the Groups to be closed when site visitors first land on our Forum Home, so that they can see all the groups without scrolling, but the default seems to be ‘open’, which results in a very lengthy landing page.

I am using a Child Theme based on the CSS-Only Theme, and have searched through the template files but am not seeing where/what I should change to make the default view ‘closed’.

I would be grateful for any clues!  laugh

4 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Can I just point you to this thread which explains how to do this. Note my comment on the post following this one was incorrect – it WILL work with css-only theme but it CAN be overridden by the user as the status for each Group is retained in a cookie.

PM Patricia Miller
Patricia Miller
Member

As always, I deeply appreciate your help!  Was there intended to be a link included with your last reply? (“….Can I just point you to this thread which explains…”).

I am okay with users overriding the default behavior via cookies…..I just would like first time visitors who arrive at the Forum to be able to see all groups without scrolling.

:-)
PM Patricia Miller
Patricia Miller
Member

Nevermind –  I found it!  Although I did try this yesterday before posting and it didn’t seem to work, but I had forgotten about the cookie…..

I found it in spGroupView.php, the sp_GroupOpenClose() function, set the default to ‘closed’.

 

smile