So I know in the <apex:page title="My Tab Title"> tag I can add a title and it changes the tab title. The problem is it appends the community name to the title I set creating something like

My Tab Title ~ community name

as my tab title. We do not want the community name to display after the tab title is there a way to suppress that?


Set the title using javascript

document.title = "This is the new page title.";

This will solve the issue.

Note: Not supported by SEO.

  • 1
    super easy. I should've thought of that. thanks Tushar.
    – Ohmicron
    Feb 22 '16 at 19:18
  • @Tushar Sharma - is there any way to change the title conditionally Jul 28 '20 at 5:48
  • @SupriyaKale yes pass title as dynamic string or use JS to conditionally set it. Jul 28 '20 at 5:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.