Olá a todos,
Existe alguma maneira de remover ou ocultar o resumo que aparece abaixo do nome da categoria quando os usuários passam o mouse sobre o menu suspenso TODAS AS CATEGORIAS no canto superior esquerdo?
Veja a captura de tela abaixo, onde tenho a caixa VERMELHA. Portanto, no exemplo abaixo, o usuário verá apenas COMO FAZER, depois BUG, etc., sem uma descrição sobre o que é a categoria… obrigado
Don
Fevereiro 12, 2022, 11:02pm
2
Olá,
The description in the dropdown is shown only for new users at TL0 that need to learn how the site is structured.
The description will be automatically hidden when a user reaches TL1.
As Daniela mentioned, we only show the category description in the dropdown for new users (trust level 0) and it’s hidden for everyone else. The thought is that regular visitors will benefit from seeing more categories at once and the descriptions are less useful.
You can override this behavior by adding this to the head section of your site’s theme (admin > customize > themes > edit html/css):
<script type="text/discourse-plugin" version="0.8">
api.modifyClass("component:category-drop", {
…
Mas acho que se você realmente quiser ocultá-lo para novos usuários também, poderá alterar o código de Kris para este.
<script type="text/discourse-plugin" version="0.8">
api.modifyClass("component:category-drop", {
pluginId: "category-dropdown-description",
displayCategoryDescription: false,
});
</script>
5 curtidas
@Don MUITO OBRIGADO, vou tentar o script.
1 curtida
system
(system)
Fechado
Setembro 12, 2023, 9:50am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.