Oh my - that did the trick, thank you so much!
I tried “building” just in the theme component (didn’t work) and “fas-building” in both places (didn’t work) but it didn’t cross my mind to try the plain version in both fields.
I still would suggest to make this differene between fa(s) and fab/far more clear in the component description.
I would be grateful if you could provide one support.
I have a Login Required setting on my Discourse.
When I visit a site with this setting, I am naturally asked to create an account or log in, and the header shows an icon that I created with this plugin.
Need account or login page(in Japanese)
If that’s all there is to it, there’s no problem, but if you click on them, you will be able to open the linked page without logging in.
(The link is to a plugin that I created myself, and the Path is a path directly under the site root, such as /test_path. Even with this path, if you specify the URL directly, etc., you will be asked to create an account or log in. Only if you go through the header icon of this plugin, the page will be displayed without login).
The best solution is to not show the icon in the first place, but at the very least, you need to be able to click on the icon to see the page that asks you to log in.
I would really appreciate it if you could help me with a solution. Thank you very much.
I’m linking to a limited access page, where I need to pass in some variables to the url. Would it be possible to get some system variables like username, userid, mail etc?
I am looking for the same thing. I want to post the logged-in user’s username to a remote server when the header icon is clicked. I understand that I can get the username via javascript, but I am not sure how I can do so this via a header icon:
Existe uma maneira de indicar a posição do ícone? Estou usando um ícone personalizado, mas tenho o chat e outro ícone de componente de tema no mesmo cabeçalho e quero definir o ícone personalizado ao lado do ícone de pesquisa.
Obrigado pelo incrível Componente de Tema! Embora eu tenha encontrado um pequeno problema: alguns ícones funcionam bem, por exemplo, fa-rocket, mas outros não aparecem, por exemplo, fa-rocketchat, embora eu ache que tenho todas as classes de ícones necessárias instaladas. Alguma ideia do que está causando isso? Agradeceria muito
Além disso: como posso obter ícones Font Awesome regulares em vez dos sólidos? Tentei incluir far-iconname e fa-regular, mas isso não parece funcionar…
Para a primeira parte da sua pergunta. Posso estar errado, mas tente adicionar o ícone do rocket chat ao seu svg icon subset nas configurações do site.
Em Ícones Svg nas Configurações do Componente de Tema e Subconjunto de ícones Svg nas Configurações Principais do Discourse, adicionei fa-rocketchat e fa-brands, conforme detalhado na descrição do ícone Font Awesome. Ele é suportado desde a versão 5.0.0 do FA, então não pode ser isso…
Para usar o estilo claro de “headset“, você precisará de uma assinatura de um plano de nível Pro ou de uma licença Pro perpétua que inclua a versão específica do Font Awesome na qual este ícone (ou estilo) foi lançado.
Como faço para colocar os ícones na parte inferior do site (no modo mobile) que apareçam iguais para todos?
Por exemplo: o botão de linha do tempo aparece na mesma posição para todos os diferentes modelos de celulares e sistemas mobile.
Agora quando uso CSS para deixar o menu de botões do cabeçalho na parte inferior, em alguns celulares eles aparecem na posição certa, em outros a posição aparece um pouco para cima, em outros um pouco para o lado, por que isso acontece?