Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Show text on Guide only to staff

Beantwortet


Gepostet 25. März 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 Kommentare

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


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post