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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

Sembra fantastico, grazie mille! Mi piacerebbe cambiare il nostro pulsante “Nuovo argomento” in quel layout che hai usato. Non sono un programmatore, hai qualche suggerimento su come potrei farlo con conoscenze tecniche limitate? @alehandrof

Vai su admin/customize/themes e aggiungi questo al tuo tema attivo sotto common > CSS

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

Puoi leggere di più sui temi di Discourse qui.

Beginner's guide to using Discourse Themes

6 Mi Piace

Oh, fantastico. L’ho appena copiato e incollato e ha funzionato. È la prima volta che aggiungo del codice a qualcosa. Molto emozionante e sembra ottimo. Grazie @Johani
C’è un modo per cambiare il testo predefinito “Nuovo argomento” in “Crea nuovo argomento” o in qualcosa di più accattivante?

1 Mi Piace

Certo, vai su admin/customize/site_texts e cerca js.topic.create

Questo ti darà due risultati

Il primo è per il pulsante che vedi nelle liste degli argomenti. Il secondo è per il pulsante di invio nel compositore quando crei un nuovo argomento.

Puoi modificare il testo di entrambi come preferisci.

3 Mi Piace

Grazie mille, è super utile. L’ho già modificato.

1 Mi Piace

Ero in vacanza e non ho seguito le mie e-mail. Grazie @joe per aver fatto seguito! In realtà non ricordavo nemmeno cosa avessi fatto, è passato così tanto tempo! :blush:

3 Mi Piace