最近の検索


最近の検索はありません

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


サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿