Pesquisas recentes
Sem pesquisas recentes

Naomi Papoushado
Entrou em 13 de mai. de 2021
·
Última atividade em 22 de out. de 2021
Seguindo
0
Seguidores
0
Atividade total
3
Votos
0
Assinaturas
2
VISÃO GERAL DA ATIVIDADE
MEDALHAS
ARTIGOS
PUBLICAÇÕES
COMENTÁRIOS NA COMUNIDADE
COMENTÁRIOS EM ARTIGOS
VISÃO GERAL DA ATIVIDADE
Atividade mais recente por Naomi Papoushado
Naomi Papoushado comentou,
+1
Trying (unsuccessfully) to follow Colin's advice from 6(!) years ago, can anyone help me?
1 - In the article, I added:
This text can only be seen by managers and agents: Internal test
2 - In the theme's script.js, I added:
// Show div html based on role
if (HelpCenter.user.role=="end_user"){
$("div.enduser").show();
}
if (HelpCenter.user.role=="agent"){
$("div.manager").show();
}
if (HelpCenter.user.role=="manager"){
$("div.manager").show();
}
if (HelpCenter.user.role=="anonymous"){
$("div.anonymous").show();
}
3 - In the theme's style.css I added:
.internal.manager {
display: none;
}
But I can't see the text under preview as any of the user types....what am I doing wrong?
Exibir comentário · Publicado 15 de dez. de 2020 · Naomi Papoushado
0
Seguidores
0
Votos
0
Comentários