Change the title of a tab

Answered

6 Comments

  • Wes Drury

    @Andy - Can you give me a screenshot of exactly what you are referring to as I think you are referring to the page title but wanted to make sure.

    Thanks.

    0
  • Andy

    Here is the title of the tab I am trying to change:

    0
  • Wes Drury

    @Andy - This should work for you.  On the JS tab insert the code below right below the $(document.ready) function

    if ($(".error-page").length > 0){
    document.title = 'Sorry - Try again!';
    }

    By default the error page has a class associated to it called error-page.  If you have customized that page then use another class that you only used on that page.

    0
  • Andy

    Thank you Wes, it worked! 

    0
  • Kevin

    Hello, 

    I am looking to do this for the Submit a request page. I believe that the title of the page is .request-container, but it still does not work. Can you provide any insight?

    Thank you, 

    0
  • Vladan Jovic
    Community Moderator

    Hi Kevin, you can achieve that if you can just paste this little modified Wes's code on the top of your Submit a request page template:

    <script>
    document.title = 'YOUR NEW TITLE HERE';
    </script>
    0

Post is closed for comments.

Powered by Zendesk