Change the title of a tab
AnsweredHi there,
I modified the error page completely but would also like to change the title so that the tab does not show "The page you are looking for doesn't exist".
How can I do this?
Thanks
-
@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.
-
Here is the title of the tab I am trying to change:
-
@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.
-
Thank you Wes, it worked!
-
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,
-
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>
Post is closed for comments.
6 Comments