최근 검색


최근 검색 없음

Show text on Guide only to staff

답변함


2024년 3월 25일에 게시됨

Hi,

I am looking for a way to write text on the main page of the Copenhagen theme to the agents only.

 

 


0

2

댓글 2개

Hi raphael peguet,

Try to use below code in Home_page.hbs

   <h4 class="show_text">Show text to agents<h4>

  <script>
    $( document ).ready(function() {
   $(".show_text").css('display', 'none');
    if(HelpCenter.user.role=='agent'){
        $(".show_text").css('display', 'block');
      }
   });  </script>

 

 

1


image avatar

Brett Bowser

Zendesk Community Manager

Thanks for sharing your solution here Prashant!

0


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물