Per page classes so we can customize experience better?

Hi -

I’m new to Discourse so maybe this is an open I am not seeing. I want to be able to customize certain pages, such as the homepage, so it looks different. Maybe it has a header image or a search bar - not sure.

Anyway, a SIMPLE way to accomplish this would be to add appropriate classes to each page in the header or body. So the homepage might have something like homepage as a body class and a category page might have something like category category-slug as the classes for that page. Etc etc.

Then we can use the theme CSS customization (and JS customization if that’s possible) to easily customize each page.

هذه موجودة بالفعل

صفحات «الرئيسية» تحتوي على فئات جسم (body classes) مثل

navigation-topics

بينما تحتوي صفحات التصنيفات على شيء مثل (لتصنيف Contribute > UX في ميتا)

categories-list category-ux

المنشورات داخل تصنيف ما تحمل فئة جسم مرتبطة بذلك التصنيف. على سبيل المثال، هذه الصفحة تحتوي حاليًا على فئة جسم هي

archetype-regular category-ux
5 إعجابات