Ricerche recenti


Nessuna ricerca recente

[Gather] Adding agent badge in Communities



Data ultimo post: 06 feb 2018

Hey guys,

I found a couple of articles on how to add the Agent badge in the Communities section and, while the codes worked for many, it didn't work for me.

In the end, where you edit the code, we had to add the following codes in the community_post_page.hbs page:

{{#if post.author.agent}}
<span title="{{post.author.name}}" class="moderator">
{{else}}
<span title="{{post.author.name}}">
{{/if}}

---> See image below:


and a bit further down, this code:

{{#if author.agent}}
<span title="{{author.name}}" class="moderator">
{{else}}
<span title="{{author.name}}">
{{/if}}

---> See image below:

Aside from that, we added this code that was provided from different articles at the very end of the page entitled style.ccs:

.moderator:after, .product-manager:after {
content: "Community Moderator";
background-color: #333;
border-radius: 3px;
color: white;
margin-left: 8px;
padding: 2px 5px;
font-size: 10px;

}

I hope this helps you guys!


0

54

54 commenti

Accedi per aggiungere un commento.

CONTENUTI AGGIUNTIVI

Ulteriori informazioni

Non hai trovato quello che cerchi?

Nuovo post