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 Me gusta

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 Me gusta

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 Me gusta

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 Me gusta

¡Eso se ve genial, muchas gracias! Me encantaría cambiar nuestro botón de “Nuevo tema” por ese diseño que usaste. No soy programador, ¿tienes alguna sugerencia sobre cómo podría hacerlo con conocimientos técnicos limitados? @alehandrof

Dirígete a admin/customize/themes y agrega esto a tu tema activo bajo common > CSS

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

Puedes leer más sobre los temas de Discourse aquí.

6 Me gusta

¡Oh, fantástico! Solo copié y pegué esto y funcionó. Es la primera vez que agrego código a algo. Muy emocionante y se ve genial. Gracias @Johani.
¿Hay alguna manera de cambiar el texto predeterminado “Nuevo tema” por “Crear nuevo tema” o algo más llamativo?

1 me gusta

Claro, dirígete a admin/customize/site_texts y busca js.topic.create

Esto te dará dos resultados

El primero es para el botón que ves en las listas de temas. El segundo es para el botón de enviar en el compositor cuando creas un nuevo tema.

Puedes editar el texto de ambos como prefieras.

3 Me gusta

Muchas gracias, esto es súper útil. Ya lo he cambiado.

1 me gusta

¡Estaba de vacaciones y no estaba revisando mi correo! Gracias @joe por recordarme. ¡De hecho, ni siquiera recordaba lo que había hecho, fue hace tanto tiempo! :blush:

3 Me gusta