Sidi_Codet
(Olajuwon)
12 באוקטובר, 2024, 11:06am
1
I saw a design for category representation that I really like. Can we implement something similar on our Discourse-hosted community, or is this a specific theme or plugin?
Moin
12 באוקטובר, 2024, 11:28am
2
You can definitely implement something similar. (That is a hosted Discourse community too)
As a starting point I would use the “Boxes with Subcategories” desktop category page style.
Then your box will look similar to this one
You can also add a category logo in the category settings
Then you can add some CSS to style it the way you like
This guide explains how to make CSS changes on your Discourse site, including an introduction to CSS, where to add CSS in Discourse, and how to find the right selectors using browser inspection tools.
Required user level: Administrator
Summary
This guide covers:
A brief introduction to CSS and key concepts
How to add CSS to your Discourse site using theme components
Using browser inspection tools to find the right CSS selectors
Understanding CSS basics
CSS…
Tip: you can not only inspect your forum but also your example
Sidi_Codet
(Olajuwon)
12 באוקטובר, 2024, 11:35am
3
how do i locate the desktop category page style ??
Moin
12 באוקטובר, 2024, 11:37am
4
It’s a site setting
Go to /admin/site_settings/ and use search to find it
Sidi_Codet
(Olajuwon)
12 באוקטובר, 2024, 11:46am
5
Thank you, I’ve seen it, but I’m not sure why it’s displaying two banners . The
top one
is fine, but the
second one
with my icon seems unnecessary.
How do I remove the second one ??
Sidi_Codet
(Olajuwon)
12 באוקטובר, 2024, 12:14pm
7
yes that fixed, now please I want it show on mobile as well, is it possible ??
manuel
(Manuel Kostka)
12 באוקטובר, 2024, 5:44pm
8
You can use GitHub - discourse/discourse-minimal-category-boxes for same styles on desktop and mobile.