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?


1 Answer 1


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, 2016 at 19:18
  • @Tushar Sharma - is there any way to change the title conditionally Jul 28, 2020 at 5:48
  • @SupriyaKale yes pass title as dynamic string or use JS to conditionally set it. Jul 28, 2020 at 5:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .