Make "New Topic" button more prominent

I had some users complain that it wasn’t obvious how to post a new topic, so I styled the button to look like .btn-primary. I think that might be a good default, actually:

(I also changed the “create” vocabulary to “post” since taking the screenshot, but that’s another matter altogether :slight_smile: )

4 إعجابات

This is intentional, we believe people should look for existing topics first before rushing to create a new one. Reply is primary action not create topic.

6 إعجابات

Ah, interesting! For our community, we currently want new users to be able to find how to ask questions more easily. We’re a small, private community. But I can see why this would be counterproductive in large, public, and active forums.

إعجابَين (2)

Yes it’s totally fine to change this to whatever you want locally on your discussions, my comments are in the context of global defaults for all sites.

6 إعجابات

هذا يبدو رائعًا، شكرًا جزيلاً. أحببت تغيير زر “موضوع جديد” لدينا إلى نفس التخطيط الذي استخدمته. لست مبرمجًا، هل لديك أي اقتراحات حول كيفية القيام بذلك بمعرفة تقنية محدودة؟ @alehandrof

انتقل إلى admin/customize/themes وأضف هذا إلى سمة نشطة لديك تحت Common > CSS

#create-topic {
  background: var(--tertiary);
  color: var(--secondary);
  svg {
    color: var(--secondary);
  }
  
  &:hover {
    background: var(--tertiary-hover);
    svg {
      color: var(--secondary);
    }
  }
}

يمكنك قراءة المزيد عن سمات Discourse هنا.

Beginner's guide to using Discourse Themes

6 إعجابات

أوه، رائع. لقد قمت بنسخ ولصق هذا فقط وعمل. كانت هذه أول مرة أضيف فيها كودًا إلى أي شيء. مثير جدًا ويبدو رائعًا. شكرًا لك @Johani
هل هناك طريقة لتغيير النص الافتراضي “موضوع جديد” إلى “إنشاء موضوع جديد” أو شيء آخر أكثر جذبًا للانتباه؟

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

بالتأكيد، انتقل إلى admin/customize/site_texts وابحث عن js.topic.create

سيؤدي ذلك إلى ظهور نتيجتين

الأولى خاصة بالزر الذي تراه في قوائم المواضيع. والثانية خاصة بزر الإرسال في محرر النصوص عند إنشاء موضوع جديد.

يمكنك تعديل نص كلاهما إلى ما تفضله.

3 إعجابات

شكرًا جزيلاً لك، هذا مفيد للغاية. لقد قمت بتغييره بالفعل.

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

كنت في إجازة ولم أكن أتابع بريدي الإلكتروني. شكرًا لك يا @joe على المتابعة! في الواقع، لم أتذكر حتى ما فعلته، لقد كان ذلك منذ زمن بعيد! :blush:

3 إعجابات