Recent searches


No recent searches

Show text on Guide only to staff

Answered


Posted Mar 25, 2024

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 comments

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


Please sign in to leave a comment.

Didn't find what you're looking for?

New post