最近搜索


没有最近搜索

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


请先登录再写评论。

找不到所需的内容?

新建帖子