Ricerche recenti


Nessuna ricerca recente

Naomi Papoushado's Avatar

Naomi Papoushado

Data ingresso 13 mag 2021

·

Ultima attività 22 ott 2021

Seguiti

0

Follower

0

Attività totali

3

Voti

0

Abbonamenti

2

PANORAMICA ATTIVITÀ

Ultima attività di Naomi Papoushado

Naomi Papoushado ha commentato,

Commento nella community Feedback - Help Center (Guide)

+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?

Visualizza commento · Data ultimo post: 15 dic 2020 · Naomi Papoushado

0

Follower

0

Voti

0

Commenti