最近搜索


没有最近搜索

Naomi Papoushado's Avatar

Naomi Papoushado

已加入2021年5月13日

·

最后活动2021年10月22日

关注

0

关注者

0

活动总数

3

投票

0

订阅

2

活动概览

的最新活动 Naomi Papoushado

Naomi Papoushado 进行了评论,

社区评论 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?

查看评论 · 已于 2020年12月15日 发布 · Naomi Papoushado

0

关注者

0

投票

0

评论