دليل المبتدئين لاستخدام سمة Discourse

هذا درس مكثّف حول أساسيات سمات Discourse. الجمهور المستهدف هو كل من ليس لديه خبرة سابقة في سمات Discourse. إذا كنت قد استخدمت سمات Discourse أو مكونات السمات من قبل، فمن المرجح أن هذا الدليل ليس شيئًا تحتاج إلى قراءته.

ما هي السمات ومكونات السمات؟

السمات أو مكونات السمات هي مجموعة من الملفات المعبأة معًا، ومصممة إما لتعديل مظهر Discourse بصريًا أو لإضافة ميزات جديدة.

لنبدأ بالسمات.

السمات

بشكل عام، لا يُفترض أن تكون السمات متوافقة مع بعضها البعض لأنها تصاميم مستقلة مختلفة في جوهرها. فكّر في السمات كأنها «أغطية» أو مثل مشغلات التطبيقات على نظام Android. يمكنك تثبيت عدة مشغلات، لكنك لا يمكنك استخدام اثنين منها في نفس الوقت. تأتي تثبيتات Discourse الافتراضية مع سمتين: Foundation وHorizon.

تقدم Foundation مظهرًا نظيفًا وكلاسيكيًا لـ Discourse، بينما يوفر Horizon تصميمًا أكثر حداثة مع لوحات ألوان متعددة للاختيار من بينها (مثل Horizon، Royal، Clover، Lily، Violet، وMarigold — وكل منها يحتوي على متغيرات للوضع الفاتح والداكن).

الوضع الفاتح

والوضع الداكن

لنفترض أن ذلك لا يكفي لك وتريد المزيد. حسنًا، يمكنك تثبيت سمات إضافية بسهولة نسبية. إليك بعض أمثلة السمات المجانية المتاحة هنا على Meta.

سمات تصميم Material Design

تصميم قائمة المواضيع «الحد الأدنى» الشخصي من Sam

Vincent

كما ترون، يمكن أن يبدو موقعك مختلفًا بشكل كبير بناءً على السمة التي تختارها؛ ومع ذلك، هذا ليس كل شيء. بالإضافة إلى السمات، يدعم Discourse أيضًا مكونات السمات.

مكونات السمات

نستخدم مصطلح «مكون السمة» (theme-component) لوصف الحزم التي تركز أكثر على تخصيص جانب واحد من Discourse. نظرًا لتركيزها الضيق، تكون مكونات السمات متوافقة تقريبًا دائمًا مع بعضها البعض. هذا يعني أنه يمكنك تشغيل عدة مكونات سمات في نفس الوقت تحت أي سمة. يمكنك التفكير في مكونات السمات كأنها تطبيقات على هاتفك.


كما هو الحال دائمًا، تعد الأمثلة أفضل طريقة لوصف شيء ما، لذا إليك بعض أمثلة مكونات السمات المتاحة هنا على Meta:

بانرات فئات Discourse

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

مكون رأس العلامة التجارية

يضيف هذا المكون رأسًا علويًا إضافيًا للعلامة التجارية باستخدام شعارك وروابط التنقل وأيقونات وسائل التواصل الاجتماعي لكل من عروض الهاتف المحمول وسطح المكتب. يمكن أن يكون شعار العلامة التجارية صورة أو نصًا.

كما ترون، تتمتع مكونات السمات بنطاق تركيز أضيق بكثير. وبالتالي، فهي متوافقة مع بعضها البعض في معظم الحالات. الآن لديك فكرة عامة عن ماهية سمات Discourse ومكونات السمات. دعنا نغوص في التفاصيل أكثر.

واجهة سمات Discourse

لنلقِ نظرة على واجهة السمات. انتقل إلى your.site.com/admin/customize/themes وسترى شيئًا مشابهًا لهذا:

هذه هي واجهة السمات الافتراضية في Discourse. يمكنك القيام بعدة أشياء هنا:

  • تعيين السمة النشطة الافتراضية
  • اختيار السمات المتاحة للمستخدمين
  • إنشاء سمات ومكونات سمات جديدة
  • استيراد سمات ومكونات سمات جديدة
  • إضافة مكونات السمات إلى سمة
  • تعديل مخططات الألوان
  • تغيير إعدادات السمة
  • معاينة سمة

لنستعرض هذه الخيارات واحدة تلو الأخرى.

تعيين السمة النشطة الافتراضية

يشير علامة الصح الصغيرة بجانب اسم السمة الافتراضية إلى أن هذه هي السمة النشطة في موقعك.

الآن، دعنا نغير السمة النشطة إلى الداكنة. انقر على السمة الداكنة وسترى ما يلي:

ستتم تعيين السمة النشطة في موقعك إلى الداكنة. هذا يعني أن كل من يزور موقعك سيرى ما يلي:

وسينتقل علامة الصح بعد ذلك لتظهر بجانب اسم السمة الداكنة، مما يشير إلى أنها السمة النشطة.

اختيار السمات المتاحة للمستخدمين

من الجيد أن تتمكن من تعيين سمة لموقعك، لكن هل تعلم ما هو أجمل من ذلك؟ السماح لمستخدميك باتخاذ القرار. يتيح لك Discourse عرض سمات مختلفة لمستخدميك، مما يسمح لهم بتعيين السمة وفقًا لتفضيلاتهم. يقتصر خيارهم على حسابهم الخاص ولن يؤثر على اختيار السمة النشطة الخاصة بك أو خيارات المستخدمين الآخرين.

على سبيل المثال، يمكنك تعيين السمة النشطة على السمة الافتراضية (الفاتحة) ولكن عرض السمة الداكنة كخيار. دعنا نحاول فعل ذلك الآن. في واجهة السمات.

ستظهر جميع السمات النشطة التي لديك، سواء كانت السمة الافتراضية المحددة في موقعك أو أي سمات قمت بتعيينها لتكون قابلة للاختيار من قبل المستخدمين:

ومع ذلك، سيكون فقط السمة الافتراضية هي التي تحمل علامة الصح الخضراء.

الآن، دعنا نحاول جعل السمة الحمراء قابلة للاختيار من قبل المستخدمين على سبيل المثال.

كل ما عليك فعله هو النقر عليها، ثم تحديد المربع الذي يقول «يمكن للمستخدمين اختيار السمة».

هذا كل شيء! ستلاحظ أنها تنتقل تلقائيًا من قائمة السمات غير النشطة إلى قائمة السمات النشطة.

وتمكن مستخدميك من اختيار أي سمة يفضلونها من خلال الذهاب إلى

your.site.com/my/preferences/interface

إنشاء سمات ومكونات سمات جديدة

لإنشاء سمة أو مكون سمة جديد، انقر على أحد زري «التثبيت» الاثنين.

ستظهر لك نافذة حوار. حدد خيار «إنشاء جديد» في القائمة الجانبية اليسرى. ستحتاج إلى تقديم اسم لما تريد إنشاؤه والقرار مما إذا كانت سمة أم مكون سمة.

لقد غطينا بشكل أساسي أساسيات ماهية السمات ومكونات السمات. إذا تذكرت، فإن مكون السمة يركز عادةً على تعديل منطقة واحدة من Discourse. في حين أن السمة تغطي عادةً عددًا من الجوانب. يجب أيضًا أن تلاحظ أن السمة يمكن أن تحتوي على أي عدد من مكونات السمات تحتها، بينما لا يمكن لمكون السمة ذلك. لا تقلق بشأن هذا الآن، سيتبع لاحقًا شرح أكثر تفصيلاً لهذه العلاقة.

الآن، لنفترض أنك قررت الاسم وقررت جعلها سمة. حسنًا، بمجرد أن تضغط على زر «إنشاء»، سيتم إنشاء السمة وستتمكن بعد ذلك من:

  1. تغيير اسم السمة / مكون السمة
  2. تعيين أو تغيير مخطط ألوان للسمة
  3. إضافة HTML / CSS / JS إلى السمة / مكون السمة
  4. إضافة ملفات أو تحميلات إلى السمة
  5. إضافة مكونات فرعية إلى سمتك

التخصيصات المحددة خارج نطاق هذا الدليل، لذا سأكتفي هنا عند هذه النقطة.

تبدو واجهة إضافة HTML / CSS / JS كما يلي (بمجرد النقر على الخيار رقم 3 أعلاه)

استيراد سمات ومكونات سمات جديدة

لدينا بالفعل دليل حول كيفية استيراد السمات، لكنني أدرج هنا كيفية القيام بذلك لأن هذا الدليل يغطي جميع الأساسيات.

لاستيراد سمة أو مكون سمة، انقر على أحد زري «التثبيت» الاثنين.

سيتيح لك قسم «الشائع» معاينة/تثبيت قائمة من أكثر سماتنا ومكوناتنا شيوعًا.

يمكنك أيضًا استيراد ملفات السمات من جهازك أو عبر رابط مستودع السمات. يتم توفير رابط المستودع لكل سمة من قبل المؤلف في موضوع السمة. بمجرد استيراد السمة، تنطبق كل الأشياء التي ناقشناها سابقًا عليها. يمكنك تعيينها كافتراضية، وجعلها قابلة للاختيار من قبل المستخدمين، وما إلى ذلك.

إذا قمت باستيراد مكون سمة، فيمكنك أيضًا إضافته إلى أي من سماتك. يتم تغطية هذا بالتفصيل في القسم التالي.

إضافة مكونات السمات إلى سمة

لنفترض أنك تحب مكون سمة بانرات فئات Discourse وتريد استخدامه. ستعمل على النحو التالي:

  1. استيراد السمة من المستودع كما ناقشنا أعلاه
  2. إضافتها كمكون سمة إلى سماتك النشطة / القابلة للاختيار من قبل المستخدمين

يمكنك فعل ذلك هكذا:

بعد استيراد المكون، انتقل إلى السمة التي تريد إضافتها إليها وابحث عن قسم «المكونات المدرجة».

ستظهر هذه القائمة جميع مكونات السمات المثبتة. من هناك يمكنك إضافة مكونات السمات إلى السمة. سيبدو إضافة مكون سمة Versatile Banner كما يلي:

توجد خيار مشابه، «تضمين المكون على هذه السمات»، من صفحة المكون الفردي. يتيح لك ذلك إضافة مكون إلى عدة سمات في وقت واحد.

هذا هو إلى حد كبير كل شيء. بانرات فئات Discourse هي الآن مكون نشط في السمة الافتراضية. إذا كنت تريد أيضًا إضافتها إلى السمة الداكنة، فستكرر عملية إضافة مكون السمة للسمة الداكنة.

إذا قمت بتعيين السمة الداكنة لتكون قابلة للاختيار من قبل المستخدمين وأضفت مكون سمة بانرات فئات Discourse إليها أيضًا، فسيحصل المستخدمون الذين يختارون السمة الداكنة كسمة نشطة لهم على مكون سمة بانرات فئات Discourse أيضًا، نظرًا لأنها «سمة فرعية» للسمة الداكنة.

يمكنك الحصول على عدد غير محدود من مكونات السمات تحت سمة، وكما ناقشنا سابقًا، فهي عادة متوافقة مع بعضها البعض. لذا يمكنك فعل شيء مثل هذا:

وستكون كل تلك المكونات نشطة في السمة الافتراضية في نفس الوقت.

تعديل مخططات الألوان

مخطط الألوان هو لوحة ألوان تختارها لتوليد ألوان العناصر في سمة. لن أدخل في تفاصيل كثيرة هنا، لكنني سأريك كيفية استخدام مخططات الألوان.

انتقل إلى your.site.com/admin/customize/colors وسترى:

من هنا يمكنك تعديل مخططات الألوان أو إنشاء مخططات جديدة. لتعديل مخطط ألوان، انقر عليه وغير الألوان حسب رغبتك.

لإنشاء مخطط ألوان جديد انقر هنا

بمجرد الانتهاء من تغيير الألوان، حان الوقت الآن لتعيين مخطط الألوان كنشط في سماتك النشطة أو القابلة للاختيار من قبل المستخدمين. للقيام بذلك، انتقل إلى صفحة السمة وابحث هنا:

إعدادات السمة

يمكن أن تحتوي سمات Discourse على إعدادات. صُممت هذه الإعدادات لتكون طريقة سهلة لك لتكوين سمة أو مكون سمة وفقًا لاحتياجاتك. على سبيل المثال، تحتوي سمة أنماط أزرار Discourse على بعض الإعدادات التي تتيح تخصيصًا سهلًا لكيفية ظهور الأزرار عن طريق تغيير بعض القيم حسب رغبتك.

ليس جميع السمات / مكونات السمات لديها إعدادات، ولكن بالنسبة لتلك التي لديها، فستظهر دائمًا هنا. ستشمل الإعدادات عادةً تعليمات يقدمها المؤلف تساعدك على تحديد التغييرات التي يجب إجراؤها.

معاينة السمة

أحيانًا تحتاج إلى رؤية مظهر السمة على موقعك قبل تطبيقها. يوفر Discourse طريقة سهلة لمعاينة السمات دون تعيينها كنشطة.

أثناء وجودك في صفحة السمة، انقر هنا

وستفتح علامة تبويب جديدة مع معاينة حية لكيفية ظهور السمة على موقعك. يمكنك التنقل إلى صفحات مختلفة ورؤية كيف يبدو كل شيء.

أفضل جزء في معاينة السمة هو أنك يمكنك اختبار التغييرات مباشرة دون التسبب في أي مشاكل على موقعك في حال حدوث أي خطأ.

معلومات إضافية

الوضع الآمن

يحتوي Discourse على طريقة مدمجة لتجاوز السمة النشطة الحالية في حال حدوث مشاكل. على سبيل المثال، قد يتسبب خطأ في كود JavaScript في مكون ما في عدم عمل موقعك بشكل صحيح. لتجاوز السمة النشطة الحالية، قم بزيارة ببساطة:

your.site.com/safe-mode

سترى حينها:

من هناك يمكنك تعطيل السمة النشطة الحالية، والتنقل إلى صفحة السمة وإصلاح المشكلة أو تعطيل السمة نهائيًا.

الحصول على سمات جديدة

أكثر طريقة مباشرة للعثور على سمات ومكونات سمات جديدة هي التحقق من فئة Customization > Theme هنا على Meta.

قراءة إضافية

Designer's Guide to getting started with themes in Discourse
Developing Discourse Themes & Theme Components
Using Safe Mode to troubleshoot issues with themes and plugins
Structure of themes and theme components
Create and share a font theme component
Create and share a color scheme
Use Discourse Core Variables in your Theme
Add settings to your Discourse theme
Theme Creator, create and show themes without installing Discourse!

إذا كانت لديك أي أسئلة، فلا تتردد في طرحها.

90 إعجابًا
DiscoTOC - automatic table of contents
Header Submenus
Force Mobile Homepage
Easy Responsive Footer
Installing a theme or theme component
Changes on the handlebar templates not reflecting on the browser
Add custom content that only appears on your homepage
What is the purpose of the "Convert" button with themes?
How can i set topic image' width
Compact Navigation
Scrollable Post Content
Hide Users Column
Where can i get discourse themes?
Discourse-webpack: A boilerplate for developing JS-heavy Discourse components
Where to place ad script?
How to make your side have a side-bar and external links
Hide full name if not logged in
Add Likes Column
Override icon / color
Restrict uploads
Kiosk, a self-service theme
Application Files after Digital Ocean Setup
Adding Custom Background CSS
Changing layout with themes
Image not filling header container
Configure tag color
Custom Header Links
Is anyone working on a Discourse Wiki?
Trust-Level Avatar Flair
How to add whatsapp in the share button list next to facebook
Floating "New topic" button
Floating "New topic" button
Different landing page for desktop vs mobile theme?
Filter topic with specific tag inside single category
:cn: DiscoTOC 自动内容表格
How to change Discourse splash animation?
Any options for over-riding the username restrictions?
Theme Creator Web Dev Help
Status Page (Atlassian)
Whitelist, allowed iframe
Is it possible to create child themes?
Youtube embed size, revisited
How to change paragraph font size?
Compliant Google Login Button
Add Category Column
Auto-Hide Post Editor Preview
Discourse Coloured Text
Alternative Voting Category Style
Discourse Cookie Consent Banner
Raw Post Button
Discourse-affiliate-linker
User card redesign field parity
Advice for starting with Discourse development
SuperHref — Detect dead Amazon/eBay links replace with related products
Local image ad banners?
Omit Emoji component
Progress Bar
Como faço para entender esse fórum? (How do I understand this forum?)
Full name @mentions
Best Workflow for Maintaining Themes?
How to create a theme (if I am a pure end user)
Fakebook Theme
Filtered Topic Lists
Discourse Popular Tag Sidebar
Auto-Linkify Words
Place for total coding beginners to learn how to customise?
Can I install an external application from github running on discourse
Topic List Sidebars
Newbie help accessing code
Per-category Terms of Service
Fetch third party data for topic list
Private Message Can't Be Reached with private messaging disabled
Share theme (component) translations
Categories Layout Override
(old) method for adding languages to highlight.js on Discourse
Discourse Sidebar Menu Reorder
Group specific tool bar
Theme Stelpolva: A discourse rounded theme based on Default Theme
Custom Hamburger Menu Links
Desktop to Mobile View Banner
Link from inside the topic to itself
Custom user menu tab
Discourse Tag Sidebars
Add To Home Screen (iOS, iPadOS)
Moonclaw Theme port
Created Topic Sort
Discourse Tag Cloud
Featured Flip Cards
Main banner doesn't appear when theme was changed
Codeblock Theme Picker
Hide Auth Method
Theme-Component v Plugin: What's the difference
Can I turn off location?
Extended About Page
Category Hider Theme Component
Category Previews
Wide image extending until search icon?
Expanded Create Topic Component
How to add Google Custom Search Engine to Discourse
Inline PDF Previews
How do I add category banners?
FKB Pro - Social theme
What's the fastest and easiest way to add a persistent javascript file or snippet
Banner opacity and disabling profile pictures / avatars
Discourse Watch Category Button
Group sidebar menu sections - deprecated
Wordpress in header, Discourse in footer ? Both sticky
Add Text In Header Beside Logo
How to remove borders in tables?
Custom Homepage for Groups
Custom header colour and category icons and login button
Discourse Web Page Watermark
Removing all categories (or just "uncategorized") from hamburger menu
Hide Likes For New Users
How to remove the number of months in the category section
Styling front page category title & nav container background
Category descriptions not showing up on mobile
How customize the appearance of sections like Amazon?
Selectively hiding numbers
Homepage (sub)category display - lots of whitespace
About the Theme category
About the Theme component category
How to update Theme Components when running on Ubuntu
Javascript code snippet injection for cookie tracking
🎀 Neomorphism, a modern theme for Discourse
Dracula a Dark Theme for Discourse
How can I add a menu item
Adding statcounter code
Grogu, a theme inspired by "The Mandalorian"
Versatile Banner
Left side hamburger menu on mobile
MD Composer extras
How to add a simple Banner
Custom Top Navigation Links
Personal Message Bubbles
Custom Header Links (icons)
Discourse for self hosting
Inline Tooltips
Topic Voting Auto Self-Vote
Full Row Bulk Select
Make "New Topic" button more prominent
Marquee / news ticker
How can I add a analytics script into the header of my community?
Display replies and likes count in mobile view
Help needed with theming and logo
Compose Center
Wikified Posts Component
Discourse Coloring Tag
Welcome Link Banner
CSS username colors only working for admin/moderators?
MD Topic List component
MD Topic List Mobile component
Review with reason
HTML tags showing in banner and don't know where to change it
New PM Dropdown Button
Topic List Previews (legacy)
:classical_building: Rome, a theme inspired by ancient roman manuscripts
How to add a script at the beginning of page header?
Recommendations on layouts? A way to preview changes?
Is it possible to change Topic Title prompt for a category?
Need a plugin coded to allow certain css codings in forum
Poll Defaults
Timeline bookmark button
Graceful Theme
Material Design Theme
Sublime Theme
Discourse hamburger tags
IFrame Lightboxes
Changing theme color for the forum
Change Excerpt of topic to go to latest post instead of that specific message
Density Toggle Component
How do I test drive UI changes?
Discourse Welcome Modal
Discourse svgbob
Colored Tag Styles
Hibiscus Theme
Fully Theme
Group Categories Page Override
Voice Recorder Component
Discourse Show Fullname in Mentions
Header Locale Selector
Mint Theme
Top Contributors Sidebar
Homepage Feature
Customized Inline Codeblocks
Profile Photowall
User Portfolio
Category Banners
Matomo Analytics
Colorful Categories
Net Promoter, Satisfaction scoring?
What is the name of this theme?
Social Share
Discourse Gifs
Kanban Board
Topic List Excerpts
Unanswered Filter
Discourse Solved Quote Customization
Post Badges
Featured Tiles
Inky Theme
Reply Template
Trendy Login
Topic Author
Placeholder Forms
Remove Dashes from Tag Names
Jitsi Video Conference
Brand Header
Show Original Poster Avatars
Categories Tag Column
Timeline with labelled step by step sections - how is this achieved?
User Card Directory
Tag Icons
Tag Banners
Guest Gate Theme Component
Offline Indicator Theme Component
Showcased Categories
Signup Banner
Submit from Preview (Mobile)
Insert Video
Hamburger Theme Selector
Google Fonts
Hide Muted Categories
Category Groups
Categories Tracking Toggle
Gated Topics in Category
Halloween Decorations :ghost:
User Field Prompt
Whereby Video Meetings
Sticky Avatars for Mobile
Change the Like Icon to :+1:
Right Sidebar Blocks
DarkPixlz's Modern Theme
Sticky New Topic Banner
Clickable Topic
Topic Count in Category Boxes
Group Timezones
Remove Name Suppression on Posts
Warning banner for old Android devices affected by Let's Encrypt changes
CSS Classes for Current User's Groups
Dice Roller
Baidu Search
Avatar Size and Shape
Discourse Icon
Topic Status Filter
GitHub Status Indicators
Topic Footer Buttons
Thin Header
Sam's Simple Theme
Optional Mobile Title Header
Custom Code
Intercom Widget
Discourse Mermaid
Custom Category Boxes
Discourse Classic Theme
Topic List Thumbnails
Unformatted Code Detector
Dark/Light Mode Toggle
Discourse Docs Card Filter
Add a custom header with a dropdown menu
Hide ignored users' topics
Contributing to Discourse
Designer's Guide to getting started with themes in Discourse
Sidebar Theme Toggle
Blackout - A Theme For OLED Displays
Issues adding CSS/JS component: Robustifying links to preserve link functionality
Horizontal loading slider
Composer Footnote Button
Account Deletion Request
Developer Toolbox
Desktop PWA Navigation
Lightweight Topic List Container
Customize the header with links, icons, or menus
Disable Likes
Buttons for Scrolling to the Top/Bottom of Topics
Advanced Search Banner
Floating Navigation Controls and Desktop Navigation Bar for Mobile
Composer tip under specific tag topics
Prevent users from changing their Full Names
Replace Discourse's default SVG icons with custom icons in a theme
Changing views to creating date?
DiscourseConnect Signup Button
Notification Banners
Alternative User PMs Button For Admin
How to use themes?
Discourse Custom Width
Clickable links in website and bio for TL0 newuser
Restrict Category Editing for Topics
Cookie Consent, GDPR, and Discourse
Allow users to block keywords
Customize Your Site Branding
Any existing theme with categories on top as cards?
How do I put gradient on thin icons?
How do I put gradient on thin icons?
Alien Night Theme - A free Dark Theme for Discourse
Arranging Categories in order of number of Topics
How to show user's name next to avatar in the navigation when logged in?
Hide staff from /about page
Breadcrumb Links
Quizmaster
Discourse OneCompiler Code Runner
Integrate Appzi feedback tool to front-end of discourse
Very Modest Theme
Developing Discourse Themes & Theme Components
Header Categories Navbar
Report Content to Group
Open In Script Editor
Hide sidebar from anon users
Sidebar User Field Toggle
Avid Reader Theme
Minimizing Maintenance on Theme Customizations
Air Theme
Minima Theme
Share Link Shortener
Twitter Native Embed
Adjust the post-voting button to the bottom
Pinboard, a simple UI theme
Clean, A clean style discourse theme
Prefilled composer link generator
Hiding GUI elements for new users (less overwhelming)
Topic List Author
App Promoter
Show both OP and last reply on mobile
Image comparison slider
Announcement Bar
Featured Categories Header
I want to learn how to program for Discourse
Featured Topics
Discourse Nav Item Icon / Emoji
A reddit-ish theme for Discourse
Homepage Toggle
Chat Sidebar
Change share icon by OS
Multiple Custom Profile Links
Image Alignment and Grid
Header Glass
Topic List Item Click Animation
Twemoji Icons
Custom embedded replies
Close Composer On Page Change (mobile)
Chat – whatsapp bubbles
Hide details button style
How can one add a toggle button to the post menu and implement an action for that toggle button in a Discourse plugin?
Targetable Color Schemes
Lock Composer
Author Badge for Topic Posts
Highlighter Composer Button
Navigation (sidebar) menu display control
Rainbow Header Gradient for Discourse
Icons next to categories
How to enable side navigation?
Long picture adaptation
F NAV - Mobile Navigation Tabs
Discourse Full-width component
QR Code Shareables
Discourse Stickers
Enable Dev Tools Button
Loading Slider to Spinner
Composer Highlighted Button
Composer Inserted and Deleted Text Formatting Buttons
Solved Topic Badge
Is there a way to remove the pop-ups when making a new topic?
Smooth Scroll Top on Homepage
Stat Banner
Usercard: show leaderboard rank
Featured Lists
eBay EPN Affiliate Link Generator
Banner Featured Links
How do I go about making a very customized theme?
Return to start of topic
Moving to a Single Category Style Site Setting
How can forum admins edit the colour of topics that have been read?
Character count when writing description
Need help integrating code wrote on Edittext to the Discourse
Transit - A Public Tranportation theme
Custom Profile Link
Search section like on Reddit?
How to resize 'Modern Category + Group Boxes' thumbnail via CSS
Category List with Banners
Watermark Image
How can I create a Discourse that's just like Stemaway.com?
Minima Adjustments for Topic Cards
How can I remove the milliseconds indicator (mini-profiler) at the top right?
Add groups to the /about page
Horizon Theme
Missing anchor links in certain TOC topics?
Changing the header font for Custom Header Links
How can I change the global font size?
Discourse Age Check
Missing anchor links in certain TOC topics?
Getting ‘undefined method `kilobytes’ for “1024”:String’ when installing theme component
How can I edit My Login Page
Discourse Modal Grip
How do I install a custom theme on my Discourse instance?
Reader Mode
Discourse OrgChart
Follow Category Button
New Topic Header Button
Editor Preview Position
Missing anchor links in certain TOC topics?
Customize new topic button text
Topic Cards
Fakebook Theme
Ghost Theme
Zeronoise Theme
Topic Map Stats Icons
Category Icons
Override Signup CTA requirements
Making custom CSS changes on your site
NateDhaliwal's Theme
Code-block line numbers
Classic About Statistics
Can We Implement the Discourse Central Theme in Our Discourse Hosted Community
AI Bot - New Question Modal
Discourse Persistent banner
Custom Logo Link
Creating a banner to display at the top of your site
A TC of fun: Discourse Confetti Clicks
Related category permissions
Discourse Birthdays & Anniversaries Today (Banner)
Unstar all badges
AI Post Analyzer for Chat
Be the first to reply
Add a Logout Button in Header for Discourse Themes
Profile text is yellow
Tag Style Tool
Insert Model 3D
Quick Profile Links Menu
Normalized Profile Links
:page_facing_up: Copy Post Component
Pull to Refresh for iOS App
Homepage Blocks
Custom Lightbox - modern, swipe gestures, fullscreen mode and more
Custom Components -- add button or text at any plugin outlet
Emoji Fluff
Adding preview screenshots to Discourse themes
Quote Callouts
Pyx's Modern Theme
Discourse Graph (Plotly) Embed
Post Notice Visibility Control
Heroes - Fantasy Theme
Custom User Menu
How to add whatsapp in the share button list next to facebook
Alternate New Topic Button (per category)
Customizable Print to PDF Button
Custom Topic Sort Order Button
Quick-add Tags To Topic
Discourse-fully light/dark下不同的颜色变量如何设置并生效
Sidebar Color Palette Toggle
Customizable Navbar Component
Filter Favorites
Introducing core themes
Unhide composer fullscreen toggle for tablets
Asking for feedback: Tag Reveal Component in Topic Lists - Expand/Collapse tags in topic lists
Enable Notification Banner
Templating of my "component" broke. How do I fix it?
Verso Theme
Discourse Featured User
Setting up light and dark mode color palettes
Highlight to Search
Default Chat Channel
Shared Draft as default New Topic
Hide Votes Left
Glacier Theme
Discourse Qingwa Timelines - Custom BBCode for Beautiful Timeline Layouts
Whisper Warning
Hidden User Fields
AI summary in topic header
Restricted reactions (like) by group
Wikipedia Lookup
Messages section for sidebar
Why am I finding Discourse so difficult to customize?
Air Theme
🌐 www theme
Air Theme
Air Theme
Upcoming Events Extra Buttons and Enhancements
Tiles Image Gallery
Topic List Tooltips
Full Screen Cover Image
Advanced Hero Component
Load More Button
Modern User Card | Fixed Experimental Usercard
Show hidden categories
Topic Hover Cards
Topic List Voting Column
Discourse Lucide Icons
External Links Icon
External Link Shield – Exit Confirmation & Trust Gating
Fingerprint Button
Editing Theme design
How do I test drive UI changes?
Air Theme
Mint Theme
Air Theme
Accent Theme
YouTube PiP & Topic Playlist Player
Post Score - Display engagement metrics on posts
Schedule Logo Change: Automate Discourse site logo(s)
Advanced Header Search
Mobile Category List Adjustments
House Ad Templates
Red-light theme
Scroll to Top Component
Is it possible to edit plugin components?
Rotating Composer Placeholder
Embed whole forum
Land on Group Messages Component
Theme Developer Quick Reference Guide
Hide Topic Navigation With Timeline
Require Edit Reason
Video Upload to YouTube and Vimeo using Theme Component
Fixed-Position Topic Edit Button
Made some changes I cannot revert
Discourse Post Image Carousel
Applying a custom header to Discourse site
Blog Post Styling
Which is Better? Discourse or Flarum?
Floating left sidebar

3 posts were split to a new topic: Looking for theme gurus

2 posts were split to a new topic: Need help adding header links and image slideshow to my site

اتبعُتُ مؤخرًا هذا الدليل (شكرًا لك!) ونجحتُ في تثبيت عدة مكونات سمة على موقعي. اكتشفتُ لاحقًا أن إحداها معطلة وأن هناك فئة باسم #customization:theme:broken-theme. كان من الجيد تضمين هذه المعلومة في الدليل، لكنني لا أستطيع تعديله، لذا أقترح أن يضيف شخص ما هذه المعلومة أعلاه. شكرًا!

6 إعجابات

On many places, it is written, just add this code to CSS.
Then I tried that code/functionality to Admin Settings> Customize> Themes> Edit CSS/HTML. And paste the given code under ‘CSS’ or last pane ‘Embedded CSS’.
But there is no result.

Is there any guide which could tell the basics of how css/html code is pasted and in which area (there are many other panes/tabs also: ; Header ; After Header ; ; Footer )

3 إعجابات

هل هناك أي وثائق فعلية أم أن كل معلومات واجهة برمجة التطبيقات الخاصة بك مدفونة في سلاسل محادثات؟

إعجاب واحد (1)

هل هذا مفيد؟

إعجابَين (2)

انظر أيضًا https://docs.discourse.org/

3 إعجابات

مرحباً،
لا أرى الخيار “إعدادات المسؤول > تخصيص > السمات > تعديل CSS/HTML” متاحًا. ماذا علي أن أفعل لتمكين هذا الزر؟

إعجاب واحد (1)

يمكنك استخدام مكون سمة جديد

3 إعجابات

ربما يكون سؤالاً سخيفاً.. ولكن هل يمكنك إعطاء كل فئة “سمة” خاصة بها؟

شكراً مقدماً

مرحباً إريك، أهلاً بك!

لا توجد أسئلة سخيفة! بينما لا توجد ميزة مدمجة لتحقيق ذلك، يمكنك تعيين نمط فريد لكل فئة باستخدام CSS خاص بالفئة مع مكون سمة، على سبيل المثال.

إعجاب واحد (1)

هل من الممكن أن تكون هذه الصورة قديمة؟ تبدو مختلفة بالنسبة لي. أنا أستخدم إصدار مايو 2026.

إعجابَين (2)

هل توجد أي نسخة محدثة؟ يبدو واجهة المستخدم بالكامل مختلفة وأواجه صعوبة في التوجيه…