WordPress.org

Making WordPress.org

Opened 6 weeks ago

Last modified 6 weeks ago

#5233 new defect

Add an easy way to hide forums sections from localized helphub sites that don’t use forum feature

Reported by: audrasjb Owned by:
Milestone: Priority: normal
Component: HelpHub Keywords: has-patch dev-feedback
Cc:

Description

Some Locales don't have any forum but use locale.wordpress.org/support to provide a localized helphub (documentation) instance.

However, the homepage of their helphub website displays a forum search widget in the header and some forum-related informations in the footer.

It would be nice to provide a simple way to hide forums sections from localized helphub sites that don’t use forum feature. I think a customizer option would probably be the easiest way to hide these sections.

Workaround patch coming.

Attachments (2)

5233.diff (4.3 KB) - added by audrasjb 6 weeks ago.
HelpHub: Add a basic Customizer setting to hide forums sections from localized helphub sites that don’t use forum feature
5233.2.diff (4.4 KB) - added by audrasjb 6 weeks ago.
HelpHub: Add a basic Customizer setting to hide forums sections from localized helphub sites that don’t use forum feature

Download all attachments as: .zip

Change History (6)

@audrasjb
6 weeks ago

HelpHub: Add a basic Customizer setting to hide forums sections from localized helphub sites that don’t use forum feature

@audrasjb
6 weeks ago

HelpHub: Add a basic Customizer setting to hide forums sections from localized helphub sites that don’t use forum feature

#2 @audrasjb
6 weeks ago

5233.2.diff is a proposal to fix this issue.

This patch adds a customizer setting to OPT-IN to hide the forum front-end elements, and check if this setting is checked before displaying forum elements on the /support homepage (search form and footer).

#3 @audrasjb
6 weeks ago

  • Keywords has-patch dev-feedback added; needs-patch removed

#4 @ocean90
6 weeks ago

This shouldn't require an extra setting in the customizer. Instead it can be hidden by default based on the the number of available forums. If it's 0 hide the search form and the last section

But the bigger issue seems to be that there's no proper search on localized support sites which also searches the support articles. It shouldn't be too complicated to override https://fr.wordpress.org/support/search/ to also search support articles (by default)?

Note: See TracTickets for help on using tickets.