Recent searches


No recent searches

Change the title of a tab

Answered


Posted Jun 16, 2016

Hi 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


0

6

6 comments

image avatar

ModeratorWes

Most Engaged Member of All Time - 2021

@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


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

0


image avatar

ModeratorWes

Most Engaged Member of All Time - 2021

@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


Thank you Wes, it worked! 

0


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


image avatar

Vlad

The Wise One - 2022Community 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.

Didn't find what you're looking for?

New post