最近の検索
最近の検索はありません

Naomi Papoushado
参加日2021年5月13日
·
前回のアクティビティ2021年10月22日
フォロー中
0
フォロワー
0
合計アクティビティ
3
投票
0
受信登録
2
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Naomi Papoushado
Naomi Papoushadoさんがコメントを作成しました:
+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
コメント